From: André Goddard Rosa Date: Tue, 15 Dec 2009 02:01:08 +0000 (-0800) Subject: parser: remove unnecessary strlen() X-Git-Tag: v2.6.33-rc1~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5f54b07c06f6e438a4fee92c27423e880d8816b;p=pandora-kernel.git 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 Cc: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed