On Sat, Dec 22, 2012 at 2:56 AM, Tejun Heo <t...@kernel.org> wrote:

> There's no need to test whether a (delayed) work item in pending
> before queueing, flushing or cancelling it.  Most uses are unnecessary
> and quite a few of them are buggy.
>
> Remove unnecessary pending tests from ab8500_charger.  Only compile
> tested.
>
> Signed-off-by: Tejun Heo <t...@kernel.org>
> Cc: Srinidhi Kasagar <srinidhi.kasa...@stericsson.com>
> Cc: Linus Walleij <linus.wall...@linaro.org>

Works like a charm for us, thanks!
Reviewed-by: Linus Walleij <linus.wall...@linaro.org>
Tested-by: Marcus Cooper <marcus.xm.coo...@stericsson.com>

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

Reply via email to