]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
rocker: remove rocker parameter from functions that have rocker_port parameter
authorSimon Horman <simon.horman@netronome.com>
Mon, 1 Jun 2015 04:25:04 +0000 (13:25 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2015 23:04:52 +0000 (16:04 -0700)
commit534ba6a87d46733b896baa741e8e2f7e722d27c5
tree17f781fb10afc5d3bf5feec7a2109af8181ab64e
parent4cace675d687ebd2d813e90af80ff87ee85202f9
rocker: remove rocker parameter from functions that have rocker_port parameter

The rocker (switch) of a rocker_port may be trivially obtained from
the latter it seems cleaner not to pass the former to a function when
the latter is being passed anyway.

rocker_port_rx_proc() is omitted from this change as it is a hot path case.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Andy Gospodarek <gospo@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c