diff options
| author | Arnd Bergmann <[email protected]> | 2017-09-05 09:33:32 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-09-17 16:35:25 +0200 |
| commit | 58930cced012adb01bc78b3687049b17ef44d0a3 (patch) | |
| tree | e688a8f5b98bf51f7b8b17c47ade067c2cb8a2f7 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 688a0206cfb81fded89993420779596a3962b60f (diff) | |
staging: rts5208: fix gcc-8 logic error warning
As gcc-8 points out, the bit mask check makes no sense here:
drivers/staging/rts5208/sd.c: In function 'ext_sd_send_cmd_get_rsp':
drivers/staging/rts5208/sd.c:4130:25: error: bitwise comparison always evaluates to true [-Werror=tautological-compare]
However, the code is even more bogus, as we have already
checked for the SD_RSP_TYPE_R0 case earlier in the function
and returned success. As seen in the mmc/sd driver core,
SD_RSP_TYPE_R0 means "no response" anyway, so checking for
a particular response would not help either.
This just removes the nonsensical code to get rid of the
warning.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions