summaryrefslogtreecommitdiffstats
path: root/lib/gcd.c
diff options
context:
space:
mode:
authorAndré Goddard Rosa <andre.goddard@gmail.com>2009-12-15 03:01:08 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 17:53:33 +0100
commitb5f54b07c06f6e438a4fee92c27423e880d8816b (patch)
treed1bac8b28c77f1b646dde9779eba73d927d269f7 /lib/gcd.c
parenttree-wide: convert open calls to remove spaces to skip_spaces() lib function (diff)
downloadlinux-b5f54b07c06f6e438a4fee92c27423e880d8816b.tar.xz
linux-b5f54b07c06f6e438a4fee92c27423e880d8816b.zip
parser: remove unnecessary strlen()
No functional change. Cache strlen() result to avoid recalculating it up to 3 times on the worst case. Reduces code size a little by 32 bytes: text data bss dec hex filename 1385 0 0 1385 569 lib/parser.o-BEFORE 1353 0 0 1353 549 lib/parser.o-AFTER Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Cc: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/gcd.c')
0 files changed, 0 insertions, 0 deletions