net/mlx4_en: Combine checks of end-cases in RX completion function
authorTariq Toukan <tariqt@mellanox.com>
Tue, 27 Feb 2018 14:17:21 +0000 (16:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 19:53:26 +0000 (14:53 -0500)
commit1cb8b1216c427ddbec51b8c3e77459dd44f85bcc
tree0fae59f1572351fb39b6e2fe9419e5693402d194
parent4f32e1c4a9bbb30028406c582419d0b4c8aa5af5
net/mlx4_en: Combine checks of end-cases in RX completion function

Combine two end-cases in the same if statement with a single return value.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c