]> git.baikalelectronics.ru Git - kernel.git/commit
s390/module: fix compile warning
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 27 Feb 2013 15:28:20 +0000 (16:28 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 28 Feb 2013 08:37:13 +0000 (09:37 +0100)
commitb21818805cadc08cf9c8655c21a776ad6efb5a7c
tree361f3d6f88c2c864d81258970ecb559d28b01f04
parent4404609fb1ce717b8e9fdac2883dacd803767ed0
s390/module: fix compile warning

Get rid of this one (false positive):
arch/s390/kernel/module.c: In function ‘apply_relocate_add’:
arch/s390/kernel/module.c:404:5: warning: ‘rc’ may be used uninitialized
                                 in this function [-Wmaybe-uninitialized]
arch/s390/kernel/module.c:225:6: note: ‘rc’ was declared here

Play safe and preinitialize rc with an error value, so we see an error
if new users indeed don't initialize it.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/module.c