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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, September 23, 2009 - 10:02 am

Gitweb:     http://git.kernel.org/linus/d0defb855c8504c49b92bdc0203689ce9b4cf7ba
Commit:     d0defb855c8504c49b92bdc0203689ce9b4cf7ba
Parent:     5128a66c6605d8178f69b7a8f2a70060933a26b4
Author:     fangxiaozhi <huananhu@huawei.com>
AuthorDate: Fri Aug 7 12:30:35 2009 +0800
Committer:  Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Wed Sep 23 06:46:32 2009 -0700

    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: fangxiaozhi <huananhu@huawei.com>
    Cc: stable <stable@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/usb/storage/initializers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/storage/initializers.c b/drivers/usb/storage/initializers.c
index ec17c96..105d900 100644
--- a/drivers/usb/storage/initializers.c
+++ b/drivers/usb/storage/initializers.c
@@ -102,5 +102,5 @@ int usb_stor_huawei_e220_init(struct us_data *us)
 				      USB_TYPE_STANDARD | USB_RECIP_DEVICE,
 				      0x01, 0x0, NULL, 0x0, 1000);
 	US_DEBUGP("Huawei mode set result is %d\n", result);
-	return (result ? 0 : -ENODEV);
+	return 0;
 }
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
USB: usb-storage fails to attach to Huawei Datacard cdrom ..., Linux Kernel Mailing ..., (Wed Sep 23, 10:02 am)