Correct some error codes to native FreeBSD ones.
Sponsored by: Mellanox Technologies Tested by: Netflix MFC after: 1 week
This commit is contained in:
parent
21dd652701
commit
83c5d190fe
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user