projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f36446c
)
usb: storage: remove redundant memset() in usb_probe_stor1()
author
Yan Hong
<clouds.yan@gmail.com>
Fri, 23 Nov 2012 14:44:47 +0000
(22:44 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 22:57:20 +0000
(14:57 -0800)
scsi_host_alloc() will zero our private data, no need to memset it.
Signed-off-by: Yan Hong <clouds.yan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/usb.c
patch
|
blob
|
history
diff --git
a/drivers/usb/storage/usb.c
b/drivers/usb/storage/usb.c
index 12aa72630aedbb7f88e4cb40b5eb233fae828f72..31b3e1a61bbdda035d5ce1e5ef63ac05e36b5b26 100644
(file)
--- a/
drivers/usb/storage/usb.c
+++ b/
drivers/usb/storage/usb.c
@@
-925,7
+925,6
@@
int usb_stor_probe1(struct us_data **pus,
host->max_cmd_len = 16;
host->sg_tablesize = usb_stor_sg_tablesize(intf);
*pus = us = host_to_us(host);
- memset(us, 0, sizeof(struct us_data));
mutex_init(&(us->dev_mutex));
us_set_lock_class(&us->dev_mutex, intf);
init_completion(&us->cmnd_ready);