[RFC PATCH 4/4] workqueue: simplify the apply_workqueue_attrs_locked function.

2016-01-07 Thread Tejun Heo
Hello, Applied to wq/for-4.5 with some adjustments to patch title description. Thanks. -- 8< -- >From 6201171e3b2c02992e62448636631a0dfe4e9d20 Mon Sep 17 00:00:00 2001 From: wanghaibin Date: Thu, 7 Jan 2016 20:38:59 +0800 Subject: [PATCH] workqueue: simplify the apply_workqueue_attrs_loc

[RFC PATCH 4/4] workqueue: simplify the apply_workqueue_attrs_locked function.

2016-01-07 Thread wanghaibin
if the apply_wqattrs_prepare function return NULL, in its implement, it has already clear up the related resource, so, it can return failed directly, to avoid to call the clean up function again. this doesn't introduce any functional changes, just a suggestion. Signed-off-by: wanghaibin --- k