projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e17827
)
mmc: sd: Remove redundant err assignment from mmc_read_switch
author
Shawn Lin
<shawn.lin@rock-chips.com>
Tue, 27 Feb 2018 01:26:35 +0000
(09:26 +0800)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Thu, 15 Mar 2018 08:32:30 +0000
(09:32 +0100)
Variable err would be firstly initialized by the return value of
mmc_sd_switch().
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sd.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/sd.c
b/drivers/mmc/core/sd.c
index
d094497
..
329e600
100644
(file)
--- a/
drivers/mmc/core/sd.c
+++ b/
drivers/mmc/core/sd.c
@@
-291,8
+291,6
@@
static int mmc_read_switch(struct mmc_card *card)
return 0;
}
- err = -EIO;
-
status = kmalloc(64, GFP_KERNEL);
if (!status)
return -ENOMEM;