[staging-next] mei: fix typo in error code return

Tomas Winkler tomas.winkler at intel.com
Mon Feb 27 18:32:53 UTC 2012


From: Devin J. Pohly <djpohly at gmail.com>

~ENODEV is a different number than -ENODEV

Signed-off-by: Devin J. Pohly <djpohly at gmail.com>
Signed-off-by: Tomas Winkler <tomas.winkler at intel.com>
---
This is just resend to proper recipients

 drivers/staging/mei/interrupt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/mei/interrupt.c b/drivers/staging/mei/interrupt.c
index 8c10bf9..ce14e39 100644
--- a/drivers/staging/mei/interrupt.c
+++ b/drivers/staging/mei/interrupt.c
@@ -1279,7 +1279,7 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
 		}
 	}
 	if (dev->stop)
-		return ~ENODEV;
+		return -ENODEV;
 
 	/* complete control write list CB */
 	dev_dbg(&dev->pdev->dev, "complete control write list cb.\n");
-- 
1.7.4.4




More information about the devel mailing list