[PATCH 2/2] Staging: line6/midi.c: Fixed call of obsolete function strict_strtoul

Andor Daam andor.daam at googlemail.com
Wed Nov 30 08:12:37 UTC 2011


The obsolete function strict_strtoul was once again called and thus
replaced by kstrouint.
The variable midi_mask_recieve is also of type int therefore a
conversion to long was not necessary.

Signed-off-by: Andor Daam <andor.daam at googlemail.com>
---
 drivers/staging/line6/midi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/line6/midi.c b/drivers/staging/line6/midi.c
index fb87829..773fbbe 100644
--- a/drivers/staging/line6/midi.c
+++ b/drivers/staging/line6/midi.c
@@ -339,10 +339,10 @@ static ssize_t midi_set_midi_mask_receive(struct device *dev,
 {
 	struct usb_interface *interface = to_usb_interface(dev);
 	struct usb_line6 *line6 = usb_get_intfdata(interface);
-	unsigned long value;
+	unsigned int value;
 	int ret;
 
-	ret = strict_strtoul(buf, 10, &value);
+	ret = kstrtouint(buf, 10, &value);
 	if (ret)
 		return ret;
 
-- 
1.7.5.4




More information about the devel mailing list