mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 22:36:17 +01:00
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>
This commit is contained in:
parent
27b57277d9
commit
59fbb55a29
1 changed files with 0 additions and 2 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue