Lorenzo BianconiandFelix Fietkau 8b1110e53a mt76: usb: fix warning in mt76u_buf_free
Fix following static checker warning in mt76u_buf_free:
  drivers/net/wireless/mediatek/mt76/usb.c:372 mt76u_buf_free()
  warn: address of 'urb->sg[i]' is non-NULL

There is no need to check sg page pointer since urb->num_sgs
has been already validated in mt76u_fill_rx_sg

Fixes: cb83585e1121 ("mt76: usb: fix possible memory leak in mt76u_buf_free")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
2019-02-26 12:26:02 +01:00
2019-02-26 12:26:02 +01:00
2019-02-26 12:26:02 +01:00
2015-12-13 17:54:16 +01:00
2019-02-26 12:26:02 +01:00
2018-10-08 13:47:02 +02:00
2019-02-26 12:26:02 +01:00
2018-10-23 11:14:20 +02:00
2016-09-04 17:33:28 +02:00
2019-01-25 15:22:41 +01:00
2018-10-23 09:49:40 +02:00
2019-02-26 12:26:02 +01:00
2019-01-11 15:24:32 +01:00
2016-09-04 18:06:48 +02:00
S
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
BSD-3-Clause
105 MiB
Languages
C 99.7%
Perl 0.2%
Makefile 0.1%