Correct some error codes to native FreeBSD ones.

Sponsored by:	Mellanox Technologies
Tested by:	Netflix
MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2016-04-29 11:01:06 +00:00
parent 21dd652701
commit 83c5d190fe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298772

View File

@ -2559,6 +2559,7 @@ mlx5e_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
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 @@ mlx5e_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
if (error) {
if_printf(ifp, "Query eeprom failed, eeprom "
"reading is not supported\n");
error = EINVAL;
goto err_i2c;
}
@ -2601,6 +2603,7 @@ mlx5e_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
if (error) {
if_printf(ifp, "Query eeprom failed, eeprom "
"reading is not supported\n");
error = EINVAL;
goto err_i2c;
}