Commit 435a120a authored by Colin Ian King's avatar Colin Ian King Committed by Ilya Dryomov
Browse files

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: default avatarColin Ian King <colin.i.king@googlemail.com>
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 8e55ba8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */