Skip to content

Commit

Permalink
staging: mei: fix typo in error code return
Browse files Browse the repository at this point in the history
~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>
  • Loading branch information
Devin J. Pohly authored and Greg Kroah-Hartman committed Feb 29, 2012
1 parent ca923ef commit dc91e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/mei/interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit dc91e2f

Please sign in to comment.