wifi: rtw88: Remove duplicate NULL check before calling usb_kill/free_urb()
authorJinjie Ruan <ruanjinjie@huawei.com>
Sun, 8 Oct 2023 02:58:52 +0000 (10:58 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 11 Oct 2023 09:17:46 +0000 (12:17 +0300)
commitde8dd096949820ce5656d41ce409a67603e79327
tree9a8eea42f9c845c20a72ba72042dd7b10de27c5c
parent71ffa1bcd7a0b8331c32a81ce90290daaf17fce2
wifi: rtw88: Remove duplicate NULL check before calling usb_kill/free_urb()

Both usb_kill_urb() and usb_free_urb() do the NULL check itself, so there
is no need to duplicate it prior to calling.

Fixes: a82dfd33d123 ("wifi: rtw88: Add common USB chip support")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231008025852.1239450-1-ruanjinjie@huawei.com
drivers/net/wireless/realtek/rtw88/usb.c