]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_en: remove unnecessary returned value check
authorZhu Yanjun <yanjun.zhu@oracle.com>
Fri, 14 Jul 2017 03:01:27 +0000 (23:01 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jul 2017 21:29:49 +0000 (14:29 -0700)
commit2e5da7c11e6f53983b3674dc95d38863deb63e48
treeadd657d8925bed4ab1213ac20eaabcb8051f0091
parentb171ef7db7f434ecec4bd4917c2d396c11a552ed
mlx4_en: remove unnecessary returned value check

The function __mlx4_zone_remove_one_entry always returns zero. So
it is not necessary to check it.

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: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/alloc.c