af_packet: packet_getsockopt() cleanup
authorEric Dumazet <edumazet@google.com>
Thu, 19 Apr 2012 21:56:11 +0000 (21:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 20:36:42 +0000 (16:36 -0400)
commitc06fff6e175729f0d89201c98d21e55c2bf1a850
treed60332d8bdfd452dadcd94739762308952fca6af
parent900f65d361d333c949ef76a828343075f4fdf523
af_packet: packet_getsockopt() cleanup

Factorize code, since most fetched values are int type.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c