All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SPI: improve sysfs compiler complaint handling
@ 2006-10-12  1:49 Jeff Garzik
  2006-10-12 18:08 ` David Brownell
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff Garzik @ 2006-10-12  1:49 UTC (permalink / raw)
  To: dbrownell, Andrew Morton, LKML


Signed-off-by: Jeff Garzik <jeff@garzik.org>

---

Pointless?  I leave it up to the maintainer(s) to decide.

The compiler complains, even with the "(void)".

 drivers/spi/spi.c            |    4 +++-

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 146298a..085d4fa 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -448,7 +448,9 @@ static int __unregister(struct device *d
  */
 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);

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-10-12 19:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-12  1:49 [PATCH] SPI: improve sysfs compiler complaint handling Jeff Garzik
2006-10-12 18:08 ` David Brownell
2006-10-12 18:24   ` Andrew Morton
2006-10-12 18:46     ` David Brownell
2006-10-12 19:08       ` Arjan van de Ven
2006-10-12 18:39   ` Arjan van de Ven
2006-10-12 19:07     ` David Brownell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.