Re: rtlwifi: rtl818x: silence uninitialized variable warning

From: Kalle Valo
Date: Wed May 11 2016 - 14:54:38 EST


Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
> What about if "rtlphy->pwrgroup_cnt" is 2? In that case we would use an
> uninitialized "chnlgroup" variable and probably crash. Maybe that can't
> happen for some reason which is not obvious but in that case this patch
> is harmless.
>
> Setting it to zero seems like a standard default in the surrounding code
> so it's probably fine here as well.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Thanks, 1 patch applied to wireless-drivers-next.git:

2f8514b8b036 rtlwifi: rtl818x: silence uninitialized variable warning

--
Sent by pwcli
https://patchwork.kernel.org/patch/9010761/