Fix bogus warning in sysdev_driver_register()
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Tue, 6 May 2008 19:02:53 +0000 (04:02 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 May 2008 20:22:42 +0000 (13:22 -0700)
commitdb176c6ed8974fae94328ad5ac9e70b094ff22fd
tree652fea0622632fc91e7e6f0162aa754e03d6bba1
parent6ce07c7b61e74af35a05060a2d6341f68fd92c9e
Fix bogus warning in sysdev_driver_register()

        if ((drv->entry.next != drv->entry.prev) ||
            (drv->entry.next != NULL)) {

warns list_empty(&drv->entry).

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Greg KH <gregkh@suse.de>
Cc: Len Brown <lenb@kernel.org>
[ Version 2 totally redone based on suggestions from Linus & Greg ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/base/sys.c