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

Commit da9f57ea authored by Larry Finger's avatar Larry Finger Committed by John W. Linville
Browse files

rtl8187: Fix error returns



There are two places in the rtl8187 code where a routine was returning zero
(OK) when it should have been returning an error.

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Acked-by: default avatarHin-Tak Leung <htl10@users.sourceforge.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 23827926
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ static int rtl8187_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
	urb = usb_alloc_urb(0, GFP_ATOMIC);
	if (!urb) {
		kfree_skb(skb);
		return 0;
		return -ENOMEM;
	}

	flags = skb->len;
@@ -281,7 +281,7 @@ static int rtl8187_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
	}
	usb_free_urb(urb);

	return 0;
	return rc;
}

static void rtl8187_rx_cb(struct urb *urb)