Skip to content

Commit

Permalink
drivers: peci: remove self-assignment
Browse files Browse the repository at this point in the history
Assigning "base->ERROR" to itself has no effect.

Fixes #23586

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information
nashif committed Mar 23, 2020
1 parent 558b904 commit 24f77ca
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/peci/peci_mchp_xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ static int peci_xec_transfer(struct device *dev, struct peci_msg *msg)
LOG_WRN("Write buffer is not empty\n");
}

base->ERROR = base->ERROR;
LOG_WRN("Transaction error %x\n", base->ERROR);
return -EIO;
}
Expand Down

0 comments on commit 24f77ca

Please sign in to comment.