Skip to contentSkip to conversation

mei: fix typo in error code return

PATCH New Devin J. Pohly 1 participant 1 message Feb 27, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mei: fix typo in error code return

From: "Devin J. Pohly" <[email protected]>

~ENODEV is a different number than -ENODEV

---
 drivers/staging/mei/interrupt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mei/interrupt.c +1 -1
index 5c9170f..c2800ba 100644
@@ -1243,7 +1243,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");
Signature · 1 line
1.7.9.2