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)
commitb74757944d69f8cd7de5284fc7e8649d965361ab
treee0355259b27d8b72610b04ac5236ced8971d1a50
parentdae98cadf743daa480c357b7ba4410423c5f905f
net/mlx4: USe one wrapper that returns -EPERM

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