]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Remove __must_check for device_for_each_child()
authorRussell King <rmk+lkml@arm.linux.org.uk>
Sun, 22 Oct 2006 14:57:18 +0000 (15:57 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 23 Oct 2006 18:01:33 +0000 (11:01 -0700)
commit96db99885b3c7822362e93dbe064883b3017e47e
tree32ba7e6c1f75159914dd3311e1cdc4243a84de27
parenta4173d1c5f7f3a5be73de090cfa52152a6388f96
[PATCH] Remove __must_check for device_for_each_child()

Eliminate more __must_check madness.

The return code from device_for_each_child() depends on the values
which the helper function returns.  If the helper function always
returns zero, it's utterly pointless to check the return code from
device_for_each_child().

The only code which knows if the return value should be checked is
the caller itself, so forcing the return code to always be checked
is silly.  Hence, remove the __must_check annotation.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/device.h