Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ac90609 authored by Yan Hong's avatar Yan Hong Committed by Greg Kroah-Hartman
Browse files

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: default avatarYan Hong <clouds.yan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f36446cf
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);