net/mlx4: fix returned values upon failed probing
authorGaetan Rivet <gaetan.rivet@6wind.com>
Tue, 28 Mar 2017 14:13:11 +0000 (16:13 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:51 +0000 (18:59 +0200)
commit9e09761b43179caa3bc825a83b18e3b27ddf7f10
treecf382b8729fc1c162fd3b61e969613d1f57fe1fa
parentedad38fcd00e2d2494be082c1848b8f4922f792d
net/mlx4: fix returned values upon failed probing

Let error messages in place, but return unambiguous values upon
probing errors.

Fixes: 66e1591687ac ("mlx4: avoid init errors when kernel modules are not loaded")
Cc: stable@dpdk.org
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c