IRQ CORE: irq_work_queue function return value not used.
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
@@ -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
Quoted 4 lines · anish kumar
From: anish kumar <[email protected]>
As no one is using the return value of
irq_work_queuefunction 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
Signed-off-by anish kumar <[email protected]>--- kernel/irq_work.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)kernel/irq_work.c +3
-3@@ -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);
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_queuefunction it is better to just make it void.Acked-by Steven Rostedt <[email protected]>Peter, like to take this patch? Or is there a reason you have for
irq_work_queue()returning a value?-- Steve
Quoted 24 lines
Signed-off-by anish kumar <[email protected]>--- kernel/irq_work.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)kernel/irq_work.c +2
-2@@ -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);