[PATCH 1/1] usb: Fix warning simple_strtoul is obsolete, use kstrtoul instead This patch fixes "simple_strtoul is obsolete, use kstrtoul instead" warning in usb.c.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sunny Kumar <sunny.kumar.roy@xxxxxxxxx>
---
 drivers/usb/storage/usb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index 6c10c88..a0c0f66 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -485,9 +485,9 @@ void usb_stor_adjust_quirks(struct usb_device *udev, unsigned long *fflags)
 	p = quirks;
 	while (*p) {
 		/* Each entry consists of VID:PID:flags */
-		if (vid == simple_strtoul(p, &p, 16) &&
+		if (vid == kstrtoul(p, &p, 16) &&
 				*p == ':' &&
-				pid == simple_strtoul(p+1, &p, 16) &&
+				pid == kstrtoul(p+1, &p, 16) &&
 				*p == ':')
 			break;
 
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux