[Skiboot] [PATCH 3/6] mbox/flash: Remove dead code

Balbir singh bsingharora at gmail.com
Fri May 18 09:31:02 AEST 2018


Caught by scan-build, attn is passed in by value and modified
but not read after that.

Signed-off-by: Balbir singh <bsingharora at gmail.com>
---
 libflash/mbox-flash.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libflash/mbox-flash.c b/libflash/mbox-flash.c
index dd1f11c2..6742d215 100644
--- a/libflash/mbox-flash.c
+++ b/libflash/mbox-flash.c
@@ -947,9 +947,6 @@ static void mbox_flash_attn(uint8_t attn, void *priv)
 	} else {
 		mbox_flash->pause = false;
 	}
-
-	if (attn & MBOX_ATTN_BMC_DAEMON_READY)
-		attn &= ~MBOX_ATTN_BMC_DAEMON_READY;
 }
 
 static void mbox_flash_callback(struct bmc_mbox_msg *msg, void *priv)
-- 
2.17.0



More information about the Skiboot mailing list