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

Commit d0defb85 authored by fangxiaozhi's avatar fangxiaozhi Committed by Greg Kroah-Hartman
Browse files

USB: usb-storage fails to attach to Huawei Datacard cdrom device



In this patch, we always make the return value of function
usb_stor_huawei_e220_init to be zero. Then it will not prevent usb-storage
driver from attaching to the CDROM device of Huawei Datacard.

Signed-off-by: default avatarfangxiaozhi <huananhu@huawei.com>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5128a66c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -102,5 +102,5 @@ int usb_stor_huawei_e220_init(struct us_data *us)
				      USB_TYPE_STANDARD | USB_RECIP_DEVICE,
				      USB_TYPE_STANDARD | USB_RECIP_DEVICE,
				      0x01, 0x0, NULL, 0x0, 1000);
				      0x01, 0x0, NULL, 0x0, 1000);
	US_DEBUGP("Huawei mode set result is %d\n", result);
	US_DEBUGP("Huawei mode set result is %d\n", result);
	return (result ? 0 : -ENODEV);
	return 0;
}
}