Skip to content
Commit f66116f7 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jens Axboe
Browse files

rsxx: remove extraneous 'const' qualifier

The returned string from rsxx_card_state_to_str is 'const',
but the other qualifier doesn't change anything here except
causing a warning with 'clang -Wextra':

drivers/block/rsxx/core.c:393:21: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
static const char * const rsxx_card_state_to_str(unsigned int state)

Fixes: f3791203

 ("block: IBM RamSan 70/80 trivial changes.")
Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210323215753.281668-1-arnd@kernel.org
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2907f851
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment