mlx4_en: remove unnecessary error check
authorZhu Yanjun <yanjun.zhu@oracle.com>
Mon, 24 Jul 2017 08:22:44 +0000 (04:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2017 00:26:32 +0000 (17:26 -0700)
commitf575a02ee76cda1eff5e6949aff7cf5c386e3977
treedf9d4d30718f6572fa40526f87b62475df1970a7
parentb5f3e0d430122a551cbc2b88068dae8b2c2c0031
mlx4_en: remove unnecessary error check

The function mlx4_en_get_profile always return zero. So it is not
necessary to check its return value.

CC: Joe Jin <joe.jin@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_main.c