aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/rbd.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@googlemail.com>2021-11-27 17:21:04 +0000
committerIlya Dryomov <idryomov@gmail.com>2022-01-13 13:40:06 +0100
commit435a120a47eed0b3a1ac7b86cf1f7707bf2242ce (patch)
treefe2680f6e15ecda007b4f1e28015e40ba9471ddf /drivers/block/rbd.c
parentceph: Fix incorrect statfs report for small quota (diff)
downloadlinux-dev-435a120a47eed0b3a1ac7b86cf1f7707bf2242ce.tar.xz
linux-dev-435a120a47eed0b3a1ac7b86cf1f7707bf2242ce.zip
rbd: make const pointer spaces a static const array
Don't populate the const array spaces on the stack but make it static const and make the pointer an array to remove a dereference. Shrinks object code a little too. Also clean up intent, currently it is spaces and should be a tab. Signed-off-by: Colin Ian King <colin.i.king@googlemail.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to '')
-rw-r--r--drivers/block/rbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 909dbe6111bf..1bf1595420a8 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -6191,7 +6191,7 @@ static inline size_t next_token(const char **buf)
* These are the characters that produce nonzero for
* isspace() in the "C" and "POSIX" locales.
*/
- const char *spaces = " \f\n\r\t\v";
+ static const char spaces[] = " \f\n\r\t\v";
*buf += strspn(*buf, spaces); /* Find start of token */