]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] lib/string.c cleanup: remove pointless register keyword
authorJesper Juhl <jesper.juhl@gmail.com>
Sun, 30 Oct 2005 23:02:12 +0000 (15:02 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:19 +0000 (17:37 -0800)
commita9ae9abc43a859e8539998b5a55a8bb5cbccc637
treecc305a6ab2cbd8d5f5754e1bf900a458d7d2a4cb
parent83b49f15d7adea797d57a572974563538af00da0
[PATCH] lib/string.c cleanup: remove pointless register keyword

Removes a few pointless register keywords.  register is merely a compiler
hint that access to the variable should be optimized, but gcc (3.3.6 in my
case) generates the exact same code with and without the keyword, and even
if gcc did something different with register present I think it is doubtful
we would want to optimize access to these variables - especially since this
is generic library code and there are supposed to be optimized versions in
asm/ for anything that really matters speed wise.

(akpm: iirc, keyword register is a gcc no-op unless using -O0)

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/string.c