diff options
author | Lee Jones <[email protected]> | 2020-07-01 13:46:56 +0100 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2020-07-13 12:18:25 +0200 |
commit | 679209b3c1b00b56d18c17bfe0112fc58e14d6cb (patch) | |
tree | 9ba8cfb33873329b808edf126e59cb89b34741fc /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 306c59cbe4bb717803126d6ede874998193b49b3 (diff) |
mmc: rtsx_pci_sdmmc: Remove set but unused variable 'err'
Seeing as sd_wait_data_idle() returns void and only a very specific
read value is checked, there doesn't seem to be a good reason to
check the return value of rtsx_pci_read_register(). So remove
the assignment and definition of 'err'.
Squashes the following W=1 kernel build warning:
drivers/mmc/host/rtsx_pci_sdmmc.c: In function ‘sd_wait_data_idle’:
drivers/mmc/host/rtsx_pci_sdmmc.c:678:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
678 | int err, i;
| ^~~
Cc: Wei WANG <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions