]> git.baikalelectronics.ru Git - kernel.git/commit
Driver core: Drop __must_check from bus_for_each_drv()
authorJean Delvare <khali@linux-fr.org>
Wed, 16 Jun 2010 09:44:18 +0000 (11:44 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 5 Aug 2010 20:53:33 +0000 (13:53 -0700)
commit418ac8aeb3a1beba471d4266bf0b905c35aaed2f
tree18539a44c9767e90eea18f532509b8222b0a750d
parent8320de23ddce25a409f73db7845e5395824234cd
Driver core: Drop __must_check from bus_for_each_drv()

There is little rationale for marking bus_for_each_drv() __must_check.
It is more of an iteration helper than a real function. You don't know
in advance which callback it will be used on, so you have no clue how
important it can be to check the returned value. In practice, this
helper function can be used for best-effort tasks.

As a matter of fact, bus_for_each_dev() is not marked __must_check.
So remove it from bus_for_each_drv() as well. This is the same that
was done back in October 2006 by Russell King for
device_for_each_child(), for exactly the same reasons.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/device.h