summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2012-02-27 20:32:53 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-29 15:43:19 -0800
commitdc91e2f1c01a579e055ebd25c32c1628041b0eca (patch)
tree72b6fa1cd8c6c6f0a902b973f485e28f80c1e08f
parentca923ef9276040e4434153e915907cf1028fe9e3 (diff)
staging: mei: fix typo in error code return
~ENODEV is a different number than -ENODEV Signed-off-by: Devin J. Pohly <djpohly@gmail.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/mei/interrupt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mei/interrupt.c b/drivers/staging/mei/interrupt.c
index 3c21c93af8ea..8a9044ba3573 100644
--- a/drivers/staging/mei/interrupt.c
+++ b/drivers/staging/mei/interrupt.c
@@ -1280,7 +1280,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");