]> Pileus Git - ~andy/linux/blobdiff - net/dccp/qpolicy.c
serial: bfin_uart: RTS and CTS MMRs can be either 16-bit width or 32-bit width.
[~andy/linux] / net / dccp / qpolicy.c
index 27383f88c75f840c93d6b95331ca162284f612b7..63c30bfa4703ff0411cc874ef0c10d6c4b793a84 100644 (file)
@@ -120,11 +120,11 @@ struct sk_buff *dccp_qpolicy_pop(struct sock *sk)
 {
        struct sk_buff *skb = dccp_qpolicy_top(sk);
 
-       /* Clear any skb fields that we used internally */
-       skb->priority = 0;
-
-       if (skb)
+       if (skb != NULL) {
+               /* Clear any skb fields that we used internally */
+               skb->priority = 0;
                skb_unlink(skb, &sk->sk_write_queue);
+       }
        return skb;
 }