diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-03-23 22:57:26 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-03-24 13:56:20 +0100 |
commit | f66116f7b2138b584b9fa4ddeedb4bcc670f1942 (patch) | |
tree | 7b27cd9655025a1377860219fa22bb1c926503df /drivers/block | |
parent | xsysace: Remove SYSACE driver (diff) | |
download | linux-f66116f7b2138b584b9fa4ddeedb4bcc670f1942.tar.xz linux-f66116f7b2138b584b9fa4ddeedb4bcc670f1942.zip |
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: f37912039eb0 ("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>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/rsxx/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rsxx/core.c b/drivers/block/rsxx/core.c index 227e1be4c6f9..83636714b8d7 100644 --- a/drivers/block/rsxx/core.c +++ b/drivers/block/rsxx/core.c @@ -392,7 +392,7 @@ static irqreturn_t rsxx_isr(int irq, void *pdata) } /*----------------- Card Event Handler -------------------*/ -static const char * const rsxx_card_state_to_str(unsigned int state) +static const char *rsxx_card_state_to_str(unsigned int state) { static const char * const state_strings[] = { "Unknown", "Shutdown", "Starting", "Formatting", |