summaryrefslogtreecommitdiff
path: root/drivers/staging/usbip
diff options
context:
space:
mode:
authorHimanshu Chauhan <Himanshu@symmetricore.com>2010-01-22 23:21:57 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-04 03:42:52 +0300
commit1e5065dbd6fe53b46d8281db7b4286751dcf607a (patch)
treeaf8627b6c229b5f13542310fcdb6dd72163efd60 /drivers/staging/usbip
parent22e0967f72494564e416b157568ed5876666ad26 (diff)
downloadlinux-1e5065dbd6fe53b46d8281db7b4286751dcf607a.tar.xz
Staging: usbip: minor code cleanup
Signed-off-by: Himanshu Chauhan <himanshu@symmetricore.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/usbip')
-rw-r--r--drivers/staging/usbip/usbip_common.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/usbip/usbip_common.c b/drivers/staging/usbip/usbip_common.c
index ddb6f5fd04d5..57c0ff5ab9a5 100644
--- a/drivers/staging/usbip/usbip_common.c
+++ b/drivers/staging/usbip/usbip_common.c
@@ -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;
}