Skip to contentSkip to conversation

IRQ CORE: irq_work_queue function return value not used.

PATCH In review anish kumar 3 participants 3 messages Nov 2, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IRQ CORE: irq_work_queue function return value not used.

From: anish kumar <[email protected]>

As no one is using the return value of irq_work_queue function it is better to just make it void.

---
 kernel/irq_work.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
kernel/irq_work.c +3 -3
index 1588e3b..a85c4b3 100644
@@ -79,17 +79,17 @@ static void __irq_work_queue(struct irq_work *work)
  *
  * Can be re-enqueued while the callback is still in progress.
  */
-bool irq_work_queue(struct irq_work *work)
+void irq_work_queue(struct irq_work *work)
 {
 	if (!irq_work_claim(work)) {
 		/*
 		 * Already enqueued, can't do!
 		 */
-		return false;
+		return;
 	}
 
 	__irq_work_queue(work);
-	return true;
+	return;
 }
 EXPORT_SYMBOL_GPL(irq_work_queue);
 
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · anish kumar

From: anish kumar <[email protected]>

As no one is using the return value of irq_work_queue function it is better to just make it void.

Peter, like to take this patch? Or is there a reason you have for irq_work_queue() returning a value?

-- Steve

Quoted 30 lines
---
 kernel/irq_work.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
kernel/irq_work.c +3 -3
index 1588e3b..a85c4b3 100644
@@ -79,17 +79,17 @@ static void __irq_work_queue(struct irq_work *work)
  *
  * Can be re-enqueued while the callback is still in progress.
  */
-bool irq_work_queue(struct irq_work *work)
+void irq_work_queue(struct irq_work *work)
 {
 	if (!irq_work_claim(work)) {
 		/*
 		 * Already enqueued, can't do!
 		 */
-		return false;
+		return;
 	}
 
 	__irq_work_queue(work);
-	return true;
+	return;
 }
 EXPORT_SYMBOL_GPL(irq_work_queue);
 
#2 lore raw
Quoted 37 lines · Steven Rostedt
Quoted 4 lines · anish kumar

From: anish kumar <[email protected]>

As no one is using the return value of irq_work_queue function it is better to just make it void.

Peter, like to take this patch? Or is there a reason you have for irq_work_queue() returning a value?

-- Steve

Quoted 24 lines
---
 kernel/irq_work.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
kernel/irq_work.c +2 -2
index 1588e3b..a85c4b3 100644
@@ -79,17 +79,17 @@ static void __irq_work_queue(struct irq_work *work)
  *
  * Can be re-enqueued while the callback is still in progress.
  */
-bool irq_work_queue(struct irq_work *work)
+void irq_work_queue(struct irq_work *work)
 {
 	if (!irq_work_claim(work)) {
 		/*
 		 * Already enqueued, can't do!
 		 */
-		return false;
+		return;
 	}
 
Quoted 3 lines

kernel/irq_work.c static void __irq_work_queue(struct irq_work *work) · line 92

Quoted 3 lines
kernel/irq_work.c +1 -1
 	__irq_work_queue(work);
-	return true;
+	return;

And while at it please zap that pointless "return;" statement.

Quoted 6 lines
Quoted 3 lines
kernel/irq_work.c +0 -0
 }
 EXPORT_SYMBOL_GPL(irq_work_queue);