mmc: sd: Remove superfluous error code assignment
authorYousong Zhou <yszhou4tech@gmail.com>
Wed, 9 Sep 2015 16:33:16 +0000 (00:33 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Oct 2015 14:59:53 +0000 (15:59 +0100)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sd.c

index 4e7366ab187f295faab7674b72bf83fc8fb49ba4..e28ebf3c1c4bc683955ae3d3898fa33f40c88da8 100644 (file)
@@ -357,8 +357,6 @@ int mmc_sd_switch_hs(struct mmc_card *card)
        if (card->sw_caps.hs_max_dtr == 0)
                return 0;
 
-       err = -EIO;
-
        status = kmalloc(64, GFP_KERNEL);
        if (!status) {
                pr_err("%s: could not allocate a buffer for "