]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: simplify the apply_workqueue_attrs_locked()
authorwanghaibin <wanghaibin.wang@huawei.com>
Thu, 7 Jan 2016 12:38:59 +0000 (20:38 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 7 Jan 2016 16:04:34 +0000 (11:04 -0500)
commite1b0783f70580e1163f0425ad571c6fe36f79abe
tree4f930c7f753879548d0baf776f3439056ed0fc01
parent42d83eaab4c1c77a2fbb8a5b09e9e9af1d44f6c9
workqueue: simplify the apply_workqueue_attrs_locked()

If the apply_wqattrs_prepare() returns NULL, it has already cleaned up
the related resources, so it can return directly and avoid calling the
clean up function again.

This doesn't introduce any functional changes.

Signed-off-by: wanghaibin <wanghaibin.wang@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c