Skip to content

Commit

Permalink
af_packet: Quiet sparse noise about using plain integer as NULL pointer
Browse files Browse the repository at this point in the history
Quiets the sparse warning:
warning: Using plain integer as NULL pointer

Signed-off-by: Ying Xue <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ying-xue authored and davem330 committed Aug 8, 2012
1 parent b9ad2ba commit 99aa347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 99aa347

Please sign in to comment.