]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/fat/inode.c: clean up string initializations (char[] instead of char *)
authorManuel Schölling <manuel.schoelling@gmx.de>
Thu, 22 May 2014 00:44:01 +0000 (10:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:44:01 +0000 (10:44 +1000)
commit41759fa5dc42d656480a408f59cc62675372c6ad
tree2ff74c94d8d263f5dcb3d1b447795a4381277773
parentf4c349a313a91f625da1215eab6cde50204b6f0d
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>
fs/fat/inode.c