mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix logical and operator at interrupt handler thread
@ 2012-02-01  5:19 Geunsik Lim
  2012-02-01  5:41 ` Eric Dumazet
  0 siblings, 1 reply; 3+ messages in thread
From: Geunsik Lim @ 2012-02-01  5:19 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel

From: Geunsik Lim <geunsik.lim@samsung.com>

'&' is a bitwise operation. (e.g: a & b )
Use '&&' and-operator instead of '&' bitwise operator.

Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
---
 kernel/irq/manage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index a9a9dbe..c0730ad 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -773,7 +773,7 @@ static int irq_thread(void *data)
 			struct irqaction *action);
 	int wake;
 
-	if (force_irqthreads & test_bit(IRQTF_FORCED_THREAD,
+	if (force_irqthreads && test_bit(IRQTF_FORCED_THREAD,
 					&action->thread_flags))
 		handler_fn = irq_forced_thread_fn;
 	else
-- 
1.7.8.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-01  5:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-01  5:19 [PATCH] Fix logical and operator at interrupt handler thread Geunsik Lim
2012-02-01  5:41 ` Eric Dumazet
2012-02-01  5:53   ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®