diff options
author | 2020-07-01 13:46:57 +0100 | |
---|---|---|
committer | 2020-07-13 12:18:25 +0200 | |
commit | d463cf4ea471781caa266315ae770f9808101957 (patch) | |
tree | 56657f1ba0203eff1433abbc77c6f92eaf8ba66c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mmc: rtsx_pci_sdmmc: Remove set but unused variable 'err' (diff) | |
download | wireguard-linux-d463cf4ea471781caa266315ae770f9808101957.tar.xz wireguard-linux-d463cf4ea471781caa266315ae770f9808101957.zip |
mmc: rtsx_usb_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_usb_sdmmc.c: In function ‘sd_wait_data_idle’:
drivers/mmc/host/rtsx_usb_sdmmc.c:657:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
657 | int err, i;
| ^~~
Cc: Roger Tseng <rogerable@realtek.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20200701124702.908713-11-lee.jones@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions