svn commit: r298772 - head/sys/dev/mlx5/mlx5_en

Hans Petter Selasky hselasky at FreeBSD.org
Fri Apr 29 11:01:07 UTC 2016


Author: hselasky
Date: Fri Apr 29 11:01:06 2016
New Revision: 298772
URL: https://svnweb.freebsd.org/changeset/base/298772

Log:
  Correct some error codes to native FreeBSD ones.
  
  Sponsored by:	Mellanox Technologies
  Tested by:	Netflix
  MFC after:	1 week

Modified:
  head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c

Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Fri Apr 29 11:00:12 2016	(r298771)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Fri Apr 29 11:01:06 2016	(r298772)
@@ -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;
 		}
 


More information about the svn-src-head mailing list