mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
brcm80211: Delete unnecessary checks before two function calls
The functions brcmu_pkt_buf_free_skb() and usb_free_urb() test whether their argument is NULL and then return immediately. Thus the test around the call is not needed. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
6f24fe3059
commit
297540f69f
2 changed files with 2 additions and 3 deletions
|
|
@ -2538,8 +2538,7 @@ static void brcmf_sdio_bus_stop(struct device *dev)
|
|||
brcmu_pktq_flush(&bus->txq, true, NULL, NULL);
|
||||
|
||||
/* Clear any held glomming stuff */
|
||||
if (bus->glomd)
|
||||
brcmu_pkt_buf_free_skb(bus->glomd);
|
||||
brcmu_pkt_buf_free_skb(bus->glomd);
|
||||
brcmf_sdio_free_glom(bus);
|
||||
|
||||
/* Clear rx control and wake any waiters */
|
||||
|
|
|
|||
|
|
@ -421,7 +421,7 @@ fail:
|
|||
brcmf_err("fail!\n");
|
||||
while (!list_empty(q)) {
|
||||
req = list_entry(q->next, struct brcmf_usbreq, list);
|
||||
if (req && req->urb)
|
||||
if (req)
|
||||
usb_free_urb(req->urb);
|
||||
list_del(q->next);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue