RE: [PATCH] [RFC]IRQ CORE: irq_work_queue function return value notused.

From: Pallala, Ramakrishna
Date: Wed Oct 31 2012 - 10:09:03 EST



> -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;
> - }
> -
> + /*
> + * This function either will claim the entry to queue
> + * the work or if the work is already queued and is in
> + * pending state then it will simply return.
> + */
> + irq_work_claim(work)
> __irq_work_queue(work);
> return true;
> }
You can remove the last return statement.

Thanks,
Ram
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/