af_packet: Quiet sparse noise about using plain integer as NULL pointer
authorYing Xue <ying.xue@windriver.com>
Mon, 6 Aug 2012 16:27:10 +0000 (16:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Aug 2012 22:43:22 +0000 (15:43 -0700)
Quiets the sparse warning:
warning: Using plain integer as NULL pointer

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c

index ceaca7c134a011b659bc439dff6de58269b532b4..f016f6634a7964da23c2fbaeb3b1bead95e9f561 100644 (file)
@@ -1079,7 +1079,7 @@ static void *packet_current_rx_frame(struct packet_sock *po,
        default:
                WARN(1, "TPACKET version not supported\n");
                BUG();
-               return 0;
+               return NULL;
        }
 }