From dc91e2f1c01a579e055ebd25c32c1628041b0eca Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Mon, 27 Feb 2012 20:32:53 +0200 Subject: [PATCH] staging: mei: fix typo in error code return ~ENODEV is a different number than -ENODEV Signed-off-by: Devin J. Pohly Signed-off-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- 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 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"); -- 2.20.1