kconfig: avoid multiple calls to strlen
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 13 Jul 2013 13:09:43 +0000 (15:09 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 16 Jul 2013 18:26:46 +0000 (20:26 +0200)
commit26e933e3c35624d80281330c4beb17db4cd4960f
treeaf5f4cfbf5410eac6dec87cd4d314ba852d9bc9e
parent9e554dd7b2de269c697943712d91b668f27a42bd
kconfig: avoid multiple calls to strlen

Calls to strlen are costly, so avoid calling strln as much as we can.

Reported-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
scripts/kconfig/symbol.c