net: use 32-bit arithmetic while allocating net device
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 21 Sep 2017 20:33:29 +0000 (23:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Sep 2017 04:25:52 +0000 (21:25 -0700)
commit52a59bd509e3dc458be99dcf333b778e6e3b3749
tree280d07c8604dcf9f7f93ccd649cbcb58ae1a7058
parent242c1a28eb61cb34974e8aa05235d84355940a8a
net: use 32-bit arithmetic while allocating net device

Private part of allocation is never big enough to warrant size_t.

Space savings:

add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-10 (-10)
function                                     old     new   delta
alloc_netdev_mqs                            1120    1110     -10

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c