Skip to content

Commit d325537

Browse files
tititiou36gregkh
authored andcommitted
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>
1 parent 1ca54ce commit d325537

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎drivers/misc/mei/hw-txe.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -994,11 +994,7 @@ static bool mei_txe_check_and_ack_intrs(struct mei_device *dev, bool do_ack)
994994
hhisr &= ~IPC_HHIER_SEC;
995995
}
996996

997-
generated = generated ||
998-
(hisr & HISR_INT_STS_MSK) ||
999-
(ipc_isr & SEC_IPC_HOST_INT_STATUS_PENDING);
1000-
1001-
if (generated && do_ack) {
997+
if (do_ack) {
1002998
/* Save the interrupt causes */
1003999
hw->intr_cause |= hisr & HISR_INT_STS_MSK;
10041000
if (ipc_isr & SEC_IPC_HOST_INT_STATUS_IN_RDY)

0 commit comments

Comments
 (0)