From: Devin J. Pohly Date: Mon, 27 Feb 2012 18:32:53 +0000 (+0200) Subject: staging: mei: fix typo in error code return X-Git-Tag: firefly_0821_release~3680^2~3347^2~99 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dc91e2f1c01a579e055ebd25c32c1628041b0eca;p=firefly-linux-kernel-4.4.55.git 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 --- 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");