net/mlx4_en: Fix the return value of mlx4_en_dcbnl_set_all()
authorKamal Heib <kamalh@mellanox.com>
Sun, 11 Sep 2016 07:56:17 +0000 (10:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Sep 2016 02:40:25 +0000 (19:40 -0700)
commit74a9e9054456658f047bf71d9108844defde793d
tree5b7be9b6a0bc7a305484de3a9b276c6422372628
parente1487888eccc83e9eb5a3659955f79b039dc7945
net/mlx4_en: Fix the return value of mlx4_en_dcbnl_set_all()

mlx4_en_dcbnl_set_all() returns u8, so return value can't be negative in
case of failure.

Fixes: af7d51852631 ("net/mlx4_en: Add DCB PFC support through CEE netlink commands")
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Rana Shahout <ranas@mellanox.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c