]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig/conf: reduce the scope of `defconfig_file'
authorArnaud Lacombe <lacombar@gmail.com>
Thu, 14 Oct 2010 00:43:28 +0000 (20:43 -0400)
committerArnaud Lacombe <lacombar@gmail.com>
Sat, 2 Jul 2011 05:04:38 +0000 (01:04 -0400)
commit7600f69e086fdb87d3cc9df5539a3263ccf82789
tree93a812aaa6c9d867719a8d00a960d88cc7db00fa
parent77f47e490a6107b52803337153ec157c6c06773b
kconfig/conf: reduce the scope of `defconfig_file'

This variable is not used outside of main() so there is not much reason keeping
it global. Ensure it is initialized as gcc has no way to know that normal
execution path expect only one option switch to be given on the command line
(except when we request help). As a result, we always initialize
`defconfig_file' before using it.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
scripts/kconfig/conf.c