]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] spi: remove return in spi_unregister_driver()
authorBen Dooks <ben@fluff.org>
Mon, 12 Feb 2007 08:52:43 +0000 (00:52 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:31 +0000 (09:48 -0800)
commit877f3af54b7cdff00764f6393b25d8b5079fec40
tree6482b83f8f8bf7b0bd017c8101b47492fcd5e3ba
parent48a39e45cb538f3d02831d324c2850dfbe6d4793
[PATCH] spi: remove return in spi_unregister_driver()

Make the spi_unregister_driver() code fit in with the rest of the header
file, and only do the action if the driver passed is non-NULL.

This also makes the code a line smaller.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/spi/spi.h