mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue