]> git.baikalelectronics.ru Git - kernel.git/commit
rsxx: remove extraneous 'const' qualifier
authorArnd Bergmann <arnd@arndb.de>
Tue, 23 Mar 2021 21:57:26 +0000 (22:57 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Mar 2021 12:56:20 +0000 (06:56 -0600)
commitcca2fd45988e3f3e41c9925b9e7c5e2240d721f9
tree7b27cd9655025a1377860219fa22bb1c926503df
parentfa4bf68d236836dcef6bc3535ce163c95cae3a2e
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: 34b8d2dcdf5e ("block: IBM RamSan 70/80 trivial changes.")
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210323215753.281668-1-arnd@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rsxx/core.c