From 24f77ca167b2978e2f136ae6ad7a0735df0f1ccb Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 23 Mar 2020 10:20:47 -0400 Subject: [PATCH] drivers: peci: remove self-assignment Assigning "base->ERROR" to itself has no effect. Fixes #23586 Signed-off-by: Anas Nashif --- drivers/peci/peci_mchp_xec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/peci/peci_mchp_xec.c b/drivers/peci/peci_mchp_xec.c index 1b009eec9d39..e6cc1aab2dad 100644 --- a/drivers/peci/peci_mchp_xec.c +++ b/drivers/peci/peci_mchp_xec.c @@ -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; }