mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
wifi: rtw89: remove conditional return with no effect in sys_init_*()
Both branches of the check return the same value, so the check has no effect. Remove it and return the value directly. This is the result of running the Coccinelle script from scripts/coccinelle/misc/cond_return_no_effect.cocci. Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20260726134034.1385834-3-ekffu200098@gmail.com
This commit is contained in:
parent
c13ab5bed7
commit
bbc18041ad
|
|
@ -1710,11 +1710,7 @@ static int sys_init_ax(struct rtw89_dev *rtwdev)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = chip_func_en_ax(rtwdev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return ret;
|
||||
return chip_func_en_ax(rtwdev);
|
||||
}
|
||||
|
||||
const struct rtw89_mac_size_set rtw89_mac_size = {
|
||||
|
|
|
|||
|
|
@ -929,11 +929,7 @@ static int sys_init_be(struct rtw89_dev *rtwdev)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = chip_func_en_be(rtwdev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return ret;
|
||||
return chip_func_en_be(rtwdev);
|
||||
}
|
||||
|
||||
static int mac_func_en_be(struct rtw89_dev *rtwdev)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user