[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1342073471-11937-1-git-send-email-devendra.aaru@gmail.com>
Date: Thu, 12 Jul 2012 11:56:11 +0545
From: Devendra Naga <devendra.aaru@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Sage Ahn <syahn@...semi.com>,
Devendra Naga <devendra.aaru@...il.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH 1/5] staging/gdm72xx: return PTR_ERR rather -ENOENT
return the error of filp_open rather returning -ENOENT.
Signed-off-by: Devendra Naga <devendra.aaru@...il.com>
---
drivers/staging/gdm72xx/usb_boot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/gdm72xx/usb_boot.c b/drivers/staging/gdm72xx/usb_boot.c
index c163bcc..fef290c 100644
--- a/drivers/staging/gdm72xx/usb_boot.c
+++ b/drivers/staging/gdm72xx/usb_boot.c
@@ -174,7 +174,7 @@ int usb_boot(struct usb_device *usbdev, u16 pid)
if (IS_ERR(filp)) {
printk(KERN_ERR "Can't find %s.\n", img_name);
set_fs(fs);
- ret = -ENOENT;
+ ret = PTR_ERR(filp);
goto restore_fs;
}
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists