aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/ub.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c
index 21d0e075c928..f73446f580df 100644
--- a/drivers/block/ub.c
+++ b/drivers/block/ub.c
@@ -2270,19 +2270,8 @@ static int ub_probe(struct usb_interface *intf,
2270 2270
2271 nluns = 1; 2271 nluns = 1;
2272 for (i = 0; i < 3; i++) { 2272 for (i = 0; i < 3; i++) {
2273 if ((rc = ub_sync_getmaxlun(sc)) < 0) { 2273 if ((rc = ub_sync_getmaxlun(sc)) < 0)
2274 /*
2275 * This segment is taken from usb-storage. They say
2276 * that ZIP-100 needs this, but my own ZIP-100 works
2277 * fine without this.
2278 * Still, it does not seem to hurt anything.
2279 */
2280 if (rc == -EPIPE) {
2281 ub_probe_clear_stall(sc, sc->recv_bulk_pipe);
2282 ub_probe_clear_stall(sc, sc->send_bulk_pipe);
2283 }
2284 break; 2274 break;
2285 }
2286 if (rc != 0) { 2275 if (rc != 0) {
2287 nluns = rc; 2276 nluns = rc;
2288 break; 2277 break;