Re: [PATCH] staging: wfx: avoid uninitialized variable use

2020-10-27 Thread Greg Kroah-Hartman
On Mon, Oct 26, 2020 at 05:11:11PM +0100, Jérôme Pouiller wrote: > On Monday 26 October 2020 17:02:22 CET Arnd Bergmann wrote: > > > > From: Arnd Bergmann > > > > Move the added check of the 'band' variable after the > > initialization. Pointed out by clang with > > > > drivers/staging/wfx/data

Re: [PATCH] staging: wfx: avoid uninitialized variable use

2020-10-26 Thread Jérôme Pouiller
On Monday 26 October 2020 17:02:22 CET Arnd Bergmann wrote: > > From: Arnd Bergmann > > Move the added check of the 'band' variable after the > initialization. Pointed out by clang with > > drivers/staging/wfx/data_tx.c:34:19: warning: variable 'band' is > uninitialized when used here [-Wunini

[PATCH] staging: wfx: avoid uninitialized variable use

2020-10-26 Thread Arnd Bergmann
From: Arnd Bergmann Move the added check of the 'band' variable after the initialization. Pointed out by clang with drivers/staging/wfx/data_tx.c:34:19: warning: variable 'band' is uninitialized when used here [-Wuninitialized] if (rate->idx >= band->n_bitrates) { Fixes: 868fd970e187 (