Re: [PATCH 8/9] net: nb8800: avoid uninitialized variable warning

2016-01-27 Thread Arnd Bergmann
On Wednesday 27 January 2016 14:13:16 Måns Rullgård wrote: > Arnd Bergmann writes: > > > The nb8800_poll() function initializes the 'next' variable in the > > loop looking for new input data. We know this will be called at > > least once because 'budget' is a guaranteed to be a positive number >

Re: [PATCH 8/9] net: nb8800: avoid uninitialized variable warning

2016-01-27 Thread Måns Rullgård
Arnd Bergmann writes: > The nb8800_poll() function initializes the 'next' variable in the > loop looking for new input data. We know this will be called at > least once because 'budget' is a guaranteed to be a positive number > when we enter the function, but the compiler doesn't know that > and

[PATCH 8/9] net: nb8800: avoid uninitialized variable warning

2016-01-27 Thread Arnd Bergmann
The nb8800_poll() function initializes the 'next' variable in the loop looking for new input data. We know this will be called at least once because 'budget' is a guaranteed to be a positive number when we enter the function, but the compiler doesn't know that and warns when the variable is used la