[PATCH] mei: fix typo in error code return

From: Devin J. Pohly
Date: Mon Feb 27 2012 - 12:39:09 EST


From: "Devin J. Pohly" <djpohly@xxxxxxxxx>

~ENODEV is a different number than -ENODEV

Signed-off-by: Devin J. Pohly <djpohly@xxxxxxxxx>
---
drivers/staging/mei/interrupt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/mei/interrupt.c b/drivers/staging/mei/interrupt.c
index 5c9170f..c2800ba 100644
--- a/drivers/staging/mei/interrupt.c
+++ b/drivers/staging/mei/interrupt.c
@@ -1243,7 +1243,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.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/