Skip to contentSkip to conversation

ppp_synctty: remove unneeded NULL check

PATCH New Alan 1 participant 1 message Apr 8, 2015

Subsystems (3)
lore
Share & tools
lore

Alan

author
#0 lore raw

PATCH 1/1 ppp_synctty: remove unneeded NULL check

Fix a random whine found by coverity. Had it been NULL it would have showered us with oopses long before.

---

 0 files changed
drivers/net/ppp/ppp_synctty.c +1 -1
index 925d3e2..b5592b8 100644
@@ -549,7 +549,7 @@ ppp_sync_txmunge(struct syncppp *ap, struct sk_buff *skb)
 
 	ap->last_xmit = jiffies;
 
-	if (skb && ap->flags & SC_LOG_OUTPKT)
+	if (ap->flags & SC_LOG_OUTPKT)
 		ppp_print_buffer ("send buffer", skb->data, skb->len);
 
 	return skb;