rtlwifi: rtl818x: silence uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 May 2016 06:16:39 +0000 (09:16 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 11 May 2016 18:51:45 +0000 (21:51 +0300)
commit2f8514b8b03643a598706bf88214b10153324d11
treea887bebdeb00585537524063de869f0c1d584df4
parent30cfe9f61c2e78b55b33c780bc0a57f9adb00e62
rtlwifi: rtl818x: silence uninitialized variable warning

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@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8192se/rf.c
This page took 0.039292 seconds and 5 git commands to generate.