summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2016-05-09 13:11:00 +0000
committerhselasky <hselasky@FreeBSD.org>2016-05-09 13:11:00 +0000
commitd267bcca7a5fab7a5c47aa232ee1c71b418ed29b (patch)
treea4b134c7a7a00e9bfa7e58d06edb2530401f538b
parent9038ef1cbd86fa63343fcc179ea3640c2db41e31 (diff)
downloadFreeBSD-src-d267bcca7a5fab7a5c47aa232ee1c71b418ed29b.zip
FreeBSD-src-d267bcca7a5fab7a5c47aa232ee1c71b418ed29b.tar.gz
MFC r298772:
Correct some error codes to native FreeBSD ones. Sponsored by: Mellanox Technologies Tested by: Netflix
-rw-r--r--sys/dev/mlx5/mlx5_en/mlx5_en_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
index ec5dcfc..a76d32e 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
@@ -2559,6 +2559,7 @@ out:
if (error) {
if_printf(ifp, "Query module num failed, eeprom "
"reading is not supported\n");
+ error = EINVAL;
goto err_i2c;
}
/* Check if module is present before doing an access */
@@ -2588,6 +2589,7 @@ out:
if (error) {
if_printf(ifp, "Query eeprom failed, eeprom "
"reading is not supported\n");
+ error = EINVAL;
goto err_i2c;
}
@@ -2601,6 +2603,7 @@ out:
if (error) {
if_printf(ifp, "Query eeprom failed, eeprom "
"reading is not supported\n");
+ error = EINVAL;
goto err_i2c;
}
OpenPOWER on IntegriCloud