packet: fix a couple of cppcheck warnings
authorDaniel Borkmann <dborkman@redhat.com>
Sun, 19 Jan 2014 10:46:53 +0000 (11:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jan 2014 00:51:42 +0000 (16:51 -0800)
commitf0d4eb29d18f732ed80cea4bf0f6bbee9c03ed62
treefb2c0728e785efdb22acce9b48fbfc38d85a5e4a
parent967680e02724afe9bb4bf0b0c20d0a55de315fcb
packet: fix a couple of cppcheck warnings

Doesn't bring much, but also doesn't hurt us to fix 'em:

1) In tpacket_rcv() flush dcache page we can restirct the scope
   for start and end and remove one layer of indent.

2) In tpacket_destruct_skb() we can restirct the scope for ph.

3) In alloc_one_pg_vec_page() we can remove the NULL assignment
   and change spacing a bit.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c