arp: make arp_hdr_len() return unsigned int
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 26 Sep 2017 20:12:28 +0000 (23:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Sep 2017 17:29:36 +0000 (10:29 -0700)
commit6ade97da601f8af793f6c7a861af754d0f0b6767
tree9891ca4c49d7c18b1d74eb149fecf3167bf47119
parentbbdc9e687fb3c2920961d7716f1c5519ff7bc595
arp: make arp_hdr_len() return unsigned int

Negative ARP header length are not a thing.

Constify arguments while I'm at it.

Space savings:

add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-3 (-3)
function                        old     new   delta
arpt_do_table                  1163    1160      -3

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
include/linux/if_arp.h