From bf8b8511af7721e6f81848a1fd1359716602f3b7 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Thu, 10 Sep 2015 00:33:16 +0800 Subject: [PATCH] mmc: sd: Remove superfluous error code assignment Signed-off-by: Yousong Zhou Signed-off-by: Ulf Hansson --- drivers/mmc/core/sd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 4e7366ab187f..e28ebf3c1c4b 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -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 " -- 2.39.5