Skip to contentSkip to conversation

aspeed/smc: remove unused routine aspeed_smc_is_usermode()

PATCH New Cédric Le Goater 1 participant 1 message Jan 19, 2017 Arm/Aspeed machine support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aspeed/smc: remove unused routine aspeed_smc_is_usermode()

---
 hw/ssi/aspeed_smc.c | 5 -----
 1 file changed, 5 deletions(-)
hw/ssi/aspeed_smc.c +0 -5
index a0a816407fc1..ae1ad2dba6ff 100644
@@ -406,11 +406,6 @@ static inline int aspeed_smc_flash_mode(const AspeedSMCFlash *fl)
     return s->regs[s->r_ctrl0 + fl->id] & CTRL_CMD_MODE_MASK;
 }
 
-static inline bool aspeed_smc_is_usermode(const AspeedSMCFlash *fl)
-{
-    return aspeed_smc_flash_mode(fl) == CTRL_USERMODE;
-}
-
 static inline bool aspeed_smc_is_writable(const AspeedSMCFlash *fl)
 {
     const AspeedSMCState *s = fl->controller;
Signature · 1 line
2.7.4