Skip to contentSkip to conversation

pc110pad: return proper error

PATCH Applied Akinobu Mita 2 participants 2 messages Dec 19, 2006 – Dec 21, 2006 Input drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pc110pad: return proper error

According to the comment, "if we find any PCI devices in the machine, we don't have a PC110" in pc110pad.c, we should return -ENODEV rather than -ENOENT in this case.

Cc Dmitry Torokhov <[email protected]>
Cc Vojtech Pavlik <[email protected]>
---
 drivers/input/mouse/pc110pad.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/pc110pad.c +1 -1
Index: 2.6-mm/drivers/input/mouse/pc110pad.c
===================================================================
@@ -113,7 +113,7 @@ static int __init pc110pad_init(void)
 	dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL);
 	if (dev) {
 		pci_dev_put(dev);
-		return -ENOENT;
+		return -ENODEV;
 	}
 
 	if (!request_region(pc110pad_io, 4, "pc110pad")) {
#1 lore raw
Quoted 4 lines · Akinobu Mita

According to the comment, "if we find any PCI devices in the machine, we don't have a PC110" in pc110pad.c, we should return -ENODEV rather than -ENOENT in this case.

Applied, thank you.

Signature · 1 line
Dmitry