Thread (4 messages) 4 messages, 3 authors, 2016-10-25

Re: [PATCH] cw1200: fix bogus maybe-uninitialized warning

From: Solomon Peachy <hidden>
Date: 2016-10-25 18:34:50
Also in: linux-wireless, lkml

On Tue, Oct 25, 2016 at 01:24:55PM +0000, David Laight wrote:
quoted
-	if (count > 1) {
-		/* We already released one buffer, now for the rest */
-		ret = wsm_release_tx_buffer(priv, count - 1);
-		if (ret < 0)
-			return ret;
-		else if (ret > 0)
-			cw1200_bh_wakeup(priv);
-	}
+	/* We already released one buffer, now for the rest */
+	ret = wsm_release_tx_buffer(priv, count - 1);
+	if (ret < 0)
+		return ret;
+
+	if (ret > 0)
+		cw1200_bh_wakeup(priv);
That doesn't look equivalent to me (when count == 1).
I concur, this patch should not be applied in its current form.

 - Solomon
-- 
Solomon Peachy        		       pizza at shaftnet dot org
Delray Beach, FL                          ^^ (email/xmpp) ^^
Quidquid latine dictum sit, altum viditur.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help