Staging: usbip: minor code cleanup
authorHimanshu Chauhan <Himanshu@symmetricore.com>
Fri, 22 Jan 2010 20:21:57 +0000 (01:51 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:52 +0000 (16:42 -0800)
Signed-off-by: Himanshu Chauhan <himanshu@symmetricore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/usbip_common.c

index ddb6f5f..57c0ff5 100644 (file)
@@ -55,10 +55,7 @@ static ssize_t show_flag(struct device *dev, struct device_attribute *attr,
 static ssize_t store_flag(struct device *dev, struct device_attribute *attr,
                const char *buf, size_t count)
 {
-       unsigned long flag;
-
-       sscanf(buf, "%lx", &flag);
-       usbip_debug_flag = flag;
+       sscanf(buf, "%lx", &usbip_debug_flag);
 
        return count;
 }