diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-11-12 11:06:33 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-03 14:26:33 +0100 |
commit | d325537b88f504bcfdcc61055ad36ff0cb6d7d0b (patch) | |
tree | a3e8cfe293bfdac10255191d046e7f76c7f3f846 /drivers | |
parent | 1ca54ce9a3ff157b93402a7fea52595d029daa8d (diff) | |
download | linux-d325537b88f504bcfdcc61055ad36ff0cb6d7d0b.tar.bz2 |
mei: Remove some dead code
'generated' is known to be true here, so "true || whatever" will still be
true.
So, remove some dead code.
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/3f904c291f3eed06223dd8d494028e0d49df6f10.1636711522.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/mei/hw-txe.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/misc/mei/hw-txe.c b/drivers/misc/mei/hw-txe.c index a4e854b9b9e6..00652c137cc7 100644 --- a/drivers/misc/mei/hw-txe.c +++ b/drivers/misc/mei/hw-txe.c @@ -994,11 +994,7 @@ static bool mei_txe_check_and_ack_intrs(struct mei_device *dev, bool do_ack) hhisr &= ~IPC_HHIER_SEC; } - generated = generated || - (hisr & HISR_INT_STS_MSK) || - (ipc_isr & SEC_IPC_HOST_INT_STATUS_PENDING); - - if (generated && do_ack) { + if (do_ack) { /* Save the interrupt causes */ hw->intr_cause |= hisr & HISR_INT_STS_MSK; if (ipc_isr & SEC_IPC_HOST_INT_STATUS_IN_RDY) |