net: Mellanox: Delete unnecessary checks before the function call "vunmap"
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 9 Feb 2015 10:10:41 +0000 (11:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2015 22:10:05 +0000 (14:10 -0800)
commit1d966d03a37f7f58abf12e87203d03f96950cfd0
treeb8ac6df8e58fcf7b1221bb0c69135d744eec5cd2
parentc4c655302c9134c75aa88f522ee33c493276f02c
net: Mellanox: Delete unnecessary checks before the function call "vunmap"

The vunmap() function performs also input parameter validation.
Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/alloc.c
drivers/net/ethernet/mellanox/mlx5/core/alloc.c