Skip to content

Commit 648e7e4

Browse files
ytakanoKoichi98
andauthored
fix(igc): invalid condition for igc_power_down_phy_copper() (#671)
* fix(igc): invalid condition Signed-off-by: Yuuki Takano <[email protected]> * fix(igc): revert unintended change Signed-off-by: Yuuki Takano <[email protected]> --------- Signed-off-by: Yuuki Takano <[email protected]> Co-authored-by: Koichi Imai <[email protected]>
1 parent cec191c commit 648e7e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awkernel_drivers/src/pcie/intel/igc/igc_base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ pub(super) fn igc_power_down_phy_copper_base(
157157
hw: &mut IgcHw,
158158
) -> Result<(), IgcDriverErr> {
159159
// If the management interface is not enabled, then power down
160-
if ops.check_reset_block(info).is_ok() {
160+
if ops.check_reset_block(info).is_err() {
161161
igc_power_down_phy_copper(ops, info, hw)?;
162162
}
163163

0 commit comments

Comments
 (0)