diff options
author | Yan Hong <clouds.yan@gmail.com> | 2012-11-23 09:44:47 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-26 17:57:20 -0500 |
commit | 1ac90609b721824b9a9a5b5fd4e4b647a3d28d45 (patch) | |
tree | 23cf6a0ae7a6953b2a06a40962c5c74a6b273aa5 /drivers/usb | |
parent | f36446cf9bbebaa03a80d95cfeeafbaf68218249 (diff) |
usb: storage: remove redundant memset() in usb_probe_stor1()
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/storage/usb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index 12aa72630aed..31b3e1a61bbd 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c | |||
@@ -925,7 +925,6 @@ int usb_stor_probe1(struct us_data **pus, | |||
925 | host->max_cmd_len = 16; | 925 | host->max_cmd_len = 16; |
926 | host->sg_tablesize = usb_stor_sg_tablesize(intf); | 926 | host->sg_tablesize = usb_stor_sg_tablesize(intf); |
927 | *pus = us = host_to_us(host); | 927 | *pus = us = host_to_us(host); |
928 | memset(us, 0, sizeof(struct us_data)); | ||
929 | mutex_init(&(us->dev_mutex)); | 928 | mutex_init(&(us->dev_mutex)); |
930 | us_set_lock_class(&us->dev_mutex, intf); | 929 | us_set_lock_class(&us->dev_mutex, intf); |
931 | init_completion(&us->cmnd_ready); | 930 | init_completion(&us->cmnd_ready); |