Skip to contentSkip to conversation

staging: rtl8712: Place constants on the right side

PATCH Superseded Bhaktipriya Shridhar 1 participant 1 message Feb 19, 2016 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 staging: rtl8712: Place constants on the right side

Move constants to the right of binary operators. This issue was identified using the Coccinelle script:
misc/compare_const_fl.cocci

---
 drivers/staging/rtl8712/rtl8712_recv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8712/rtl8712_recv.c +1 -1
index d187508..4fd106a 100644
@@ -1109,7 +1109,7 @@ static void recv_tasklet(void *priv)
 	struct _adapter *padapter = (struct _adapter *)priv;
 	struct recv_priv *precvpriv = &padapter->recvpriv;
 
-	while (NULL != (pskb = skb_dequeue(&precvpriv->rx_skb_queue))) {
+	while ((pskb = skb_dequeue(&precvpriv->rx_skb_queue)) != NULL) {
 		recvbuf2recvframe(padapter, pskb);
 		skb_reset_tail_pointer(pskb);
 		pskb->len = 0;

--
2.1.4