Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2016 13:11:00 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r299259 - stable/10/sys/dev/mlx5/mlx5_en
Message-ID:  <201605091311.u49DB0tb073884@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon May  9 13:11:00 2016
New Revision: 299259
URL: https://svnweb.freebsd.org/changeset/base/299259

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

Modified:
  stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Mon May  9 13:09:41 2016	(r299258)
+++ stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Mon May  9 13:11:00 2016	(r299259)
@@ -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;
 		}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605091311.u49DB0tb073884>