From: Jeff Garzik Date: Thu, 7 Dec 2006 04:35:35 +0000 (-0800) Subject: [PATCH] SPI: improve sysfs compiler complaint handling X-Git-Tag: v2.6.20-rc1~145^2^2~229 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89fc9a1a79725c3e5c3b66cb6bd2c7d9eeab29fa;p=linux-2.6 [PATCH] SPI: improve sysfs compiler complaint handling Signed-off-by: Jeff Garzik Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 09f2c74a40..1a3c963dc4 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -447,7 +447,9 @@ static int __unregister(struct device *dev, void *unused) */ void spi_unregister_master(struct spi_master *master) { - (void) device_for_each_child(master->cdev.dev, NULL, __unregister); + int dummy; + + dummy = device_for_each_child(master->cdev.dev, NULL, __unregister); class_device_unregister(&master->cdev); } EXPORT_SYMBOL_GPL(spi_unregister_master);