net/mlx4: USe one wrapper that returns -EPERM
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 27 Mar 2014 12:02:02 +0000 (14:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2014 20:29:35 +0000 (16:29 -0400)
When a VF issues a firmware command which is disallowed for them, the PF
rerturns -EPERM from that command wrapper. Move to use one such wrapper
instance, instead of repeating the same code on such commands.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c