]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78c7f42ac1d624bfa4a5a264fedd80915cc469df
tree9891ca4c49d7c18b1d74eb149fecf3167bf47119
parente90bb40e96255c4534fed17f493ba3a3b87332e7
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