]> git.baikalelectronics.ru Git - kernel.git/commit
fs/fat/inode.c: clean up string initializations (char[] instead of char *)
authorManuel Schölling <manuel.schoelling@gmx.de>
Fri, 6 Jun 2014 21:36:38 +0000 (14:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2014 23:08:11 +0000 (16:08 -0700)
commiteb5af529116f51af129927860d351f297e88125b
treedfc734082af8331d2ab8a4c05e96c250ebc87c07
parent4bb1fcf6c74b8c7042b1a632348273cc29dbcab5
fs/fat/inode.c: clean up string initializations (char[] instead of char *)

Initializations like 'char *foo = "bar"' will create two variables: a
static string and a pointer (foo) to that static string.  Instead 'char
foo[] = "bar"' will declare a single variable and will end up in shorter
assembly (according to Jeff Garzik on the KernelJanitor's TODO list).

Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/inode.c