mmc: ushc: Remove bogus check of usb_submit_urb
authorShawn Lin <shawn.lin@rock-chips.com>
Sun, 25 Feb 2018 01:37:36 +0000 (09:37 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Mar 2018 12:04:30 +0000 (13:04 +0100)
Not sure why it was there in the first place, but it's
obviously useless check, so let's remove it.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/ushc.c

index 1d84335..81dac17 100644 (file)
@@ -309,8 +309,6 @@ static void ushc_request(struct mmc_host *mmc, struct mmc_request *req)
 
        /* Submit CSW. */
        ret = usb_submit_urb(ushc->csw_urb, GFP_ATOMIC);
-       if (ret < 0)
-               goto out;
 
 out:
        spin_unlock_irqrestore(&ushc->lock, flags);