summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/wbsd.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2024-02-05 22:13:10 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2024-02-13 16:01:28 +0300
commit59fbb55a297d0cf6e10c0a27fb172aada9902bc2 (patch)
tree2d8d1892b4710afc7314e815384c19da3fabab47 /drivers/mmc/host/wbsd.c
parent27b57277d9ba3a900daffdb91856ba8a5f46b3a7 (diff)
downloadlinux-59fbb55a297d0cf6e10c0a27fb172aada9902bc2.tar.xz
mmc: wbsd: remove redundant assignment to variable id
The variable id is being initialized with a value that is never read, it is being re-assigned later on. The initialization is redundant and can be removed. Cleans up clang scan build warning: drivers/mmc/host/wbsd.c:1287:4: warning: Value stored to 'id' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20240205191310.1848561-1-colin.i.king@gmail.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/wbsd.c')
-rw-r--r--drivers/mmc/host/wbsd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c
index 001a468bc149..f0562f712d98 100644
--- a/drivers/mmc/host/wbsd.c
+++ b/drivers/mmc/host/wbsd.c
@@ -1284,8 +1284,6 @@ static int wbsd_scan(struct wbsd_host *host)
continue;
for (j = 0; j < ARRAY_SIZE(unlock_codes); j++) {
- id = 0xFFFF;
-
host->config = config_ports[i];
host->unlock_code = unlock_codes[j];