Skip to content

Commit 435a120

Browse files
Colin Ian Kingidryomov
authored andcommitted
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 <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent 8e55ba8 commit 435a120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/rbd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6191,7 +6191,7 @@ static inline size_t next_token(const char **buf)
61916191
* These are the characters that produce nonzero for
61926192
* isspace() in the "C" and "POSIX" locales.
61936193
*/
6194-
const char *spaces = " \f\n\r\t\v";
6194+
static const char spaces[] = " \f\n\r\t\v";
61956195

61966196
*buf += strspn(*buf, spaces); /* Find start of token */
61976197

0 commit comments

Comments
 (0)