From: Peter Ujfalusi Date: Thu, 29 Sep 2011 12:22:37 +0000 (+0300) Subject: ASoC: twl6040: Simplify code in out_drv_event for pending work check X-Git-Tag: v3.2-rc1~127^2~1^2~199 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=009d196b4755b42c02414b287889a337955f7e09;p=pandora-kernel.git ASoC: twl6040: Simplify code in out_drv_event for pending work check Instead of checking, if the work is pending, it is safer to cancel the pending work, or wait till the scheduled work finishes. This way we can avoid modifying the variables used by the work function. Since we know that no work is pending, we can remove the two additional checks in POST_PMU, and PRE_PMD for non pending works. Signed-off-by: Peter Ujfalusi Signed-off-by: Mark Brown --- Reading git-diff-tree failed