Re: [PATCH 2/2] mt76: mt7921: remove incorrect error handling

2021-02-26 Thread Kalle Valo
Arnd Bergmann wrote: > From: Arnd Bergmann > > Clang points out a mistake in the error handling in > mt7921_mcu_tx_rate_report(), which tries to dereference a pointer that > cannot be initialized because of the error that is being handled: > > drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:40

Re: [PATCH 2/2] mt76: mt7921: remove incorrect error handling

2021-02-25 Thread Nick Desaulniers
On Thu, Feb 25, 2021 at 7:00 AM Arnd Bergmann wrote: > > From: Arnd Bergmann > > Clang points out a mistake in the error handling in > mt7921_mcu_tx_rate_report(), which tries to dereference a pointer that > cannot be initialized because of the error that is being handled: > > drivers/net/wireles

[PATCH 2/2] mt76: mt7921: remove incorrect error handling

2021-02-25 Thread Arnd Bergmann
From: Arnd Bergmann Clang points out a mistake in the error handling in mt7921_mcu_tx_rate_report(), which tries to dereference a pointer that cannot be initialized because of the error that is being handled: drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:409:3: warning: variable 'stats' is un