Re: [PATCH net-next] net/ncsi: avoid maybe-uninitialized warning

2016-07-25 Thread David Miller
From: Arnd Bergmann Date: Thu, 21 Jul 2016 21:28:34 +0200 > gcc-4.9 and higher warn about the newly added NSCI code: > > net/ncsi/ncsi-manage.c: In function 'ncsi_process_next_channel': > net/ncsi/ncsi-manage.c:1003:2: error: 'old_state' may be used uninitialized > in this function [-Werror=may

Re: [PATCH net-next] net/ncsi: avoid maybe-uninitialized warning

2016-07-21 Thread Gavin Shan
On Thu, Jul 21, 2016 at 09:28:34PM +0200, Arnd Bergmann wrote: >gcc-4.9 and higher warn about the newly added NSCI code: > >net/ncsi/ncsi-manage.c: In function 'ncsi_process_next_channel': >net/ncsi/ncsi-manage.c:1003:2: error: 'old_state' may be used uninitialized in >this function [-Werror=maybe

[PATCH net-next] net/ncsi: avoid maybe-uninitialized warning

2016-07-21 Thread Arnd Bergmann
gcc-4.9 and higher warn about the newly added NSCI code: net/ncsi/ncsi-manage.c: In function 'ncsi_process_next_channel': net/ncsi/ncsi-manage.c:1003:2: error: 'old_state' may be used uninitialized in this function [-Werror=maybe-uninitialized] The warning is a false positive and therefore harml