summaryrefslogtreecommitdiffstats
path: root/sys/dev/mlx5
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2016-04-29 11:01:06 +0000
committerhselasky <hselasky@FreeBSD.org>2016-04-29 11:01:06 +0000
commitbc38a8e23ccd009bb7d610021f85e34056e62923 (patch)
tree78c69c7e2882a2ec096875f2a8ca8df55c03c9ce /sys/dev/mlx5
parent4383f6424070cddf19258290b1e54c5c80ba96a8 (diff)
downloadFreeBSD-src-bc38a8e23ccd009bb7d610021f85e34056e62923.zip
FreeBSD-src-bc38a8e23ccd009bb7d610021f85e34056e62923.tar.gz
Correct some error codes to native FreeBSD ones.
Sponsored by: Mellanox Technologies Tested by: Netflix MFC after: 1 week
Diffstat (limited to 'sys/dev/mlx5')
-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