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)
commitae3907ecedb91c10ab8fd8b42ef62431206eee83
tree080377e41e690ddd876d58ebfc7c5a9f72468ed7
parentca0a5f2a39cbc3bcbbcc651e82758fa135ac1b9b
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