]> git.baikalelectronics.ru Git - kernel.git/commit
rocker: remove trans parameter to rocker_cmd_exec function
authorJiri Pirko <jiri@mellanox.com>
Tue, 16 Feb 2016 14:14:48 +0000 (15:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 04:08:35 +0000 (23:08 -0500)
commit6b65ca51e1d58a60d0746e3bf655f40315039d50
tree080377e41e690ddd876d58ebfc7c5a9f72468ed7
parent6660f4321c41b061e46e52cef742a64e20de59af
rocker: remove trans parameter to rocker_cmd_exec function

The only purpose of passing this parameter is to check for
prepare phase. The only reason for a failure in that state is if
TLVs don't fit into descriptor. That is highly unlikely and if that
happens, it is a driver bug. So remove this parameter from
rocker_cmd_exec, and check for prepare phase in caller.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker_main.c