Commit 5849b56
ixgbe: avoid redundant call to ixgbe_non_sfp_link_config()
ixgbe_non_sfp_link_config() is called twice in ixgbe_open()
once to assign its return value to err and again in the
conditional check. This patch uses the stored err value
instead of calling the function a second time. This avoids
redundant work and ensures consistent error reporting.
Also fix a small typo in the ixgbe_remove() comment:
"The could be caused" -> "This could be caused".
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20251125223632.1857532-8-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 954ba97 commit 5849b56
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7449 | 7449 | | |
7450 | 7450 | | |
7451 | 7451 | | |
7452 | | - | |
| 7452 | + | |
7453 | 7453 | | |
7454 | 7454 | | |
7455 | 7455 | | |
| |||
12046 | 12046 | | |
12047 | 12047 | | |
12048 | 12048 | | |
12049 | | - | |
| 12049 | + | |
12050 | 12050 | | |
12051 | 12051 | | |
12052 | 12052 | | |
| |||
0 commit comments