staging: mei: fix typo in error code return
authorDevin J. Pohly <djpohly@gmail.com>
Mon, 27 Feb 2012 18:32:53 +0000 (20:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Feb 2012 23:43:19 +0000 (15:43 -0800)
~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>
drivers/staging/mei/interrupt.c

index 3c21c93..8a9044b 100644 (file)
@@ -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");