Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 297540f6 authored by Markus Elfring's avatar Markus Elfring Committed by Kalle Valo
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 6f24fe30
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2538,7 +2538,6 @@ 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);
	brcmf_sdio_free_glom(bus);

+1 −1
Original line number Diff line number Diff line
@@ -421,7 +421,7 @@ brcmf_usbdev_qinit(struct list_head *q, int qsize)
	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);
	}