Followup patch to correct missing return value.

Signed-off-by: Ernst Schwab <esch...@online.de>
---
Apparently I missed to look at the compiler warnings, sorry for that.

diff -upr a/drivers/spi/spi.c b/drivers/spi/spi.c
--- a/drivers/spi/spi.c
+++ a/drivers/spi/spi.c
@@ -852,7 +852,7 @@ static int __spi_sync(struct spi_device 
  */
 int spi_sync(struct spi_device *spi, struct spi_message *message)
 {
-       __spi_sync(spi, message, 0);
+       return __spi_sync(spi, message, 0);
 }
 EXPORT_SYMBOL_GPL(spi_sync);
 
@@ -874,7 +874,7 @@ EXPORT_SYMBOL_GPL(spi_sync);
  */
 int spi_sync_locked(struct spi_device *spi, struct spi_message *message)
 {
-       __spi_sync(spi, message, 1);
+       return __spi_sync(spi, message, 1);
 }
 EXPORT_SYMBOL_GPL(spi_sync_locked);
 


------------------------------------------------------------------------------
Download Intel&reg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to