Tag: 430af8ad9dad82d775d688155e1db1da385d3e7a

cgroup: fix coccinelle warnings

Author: Fengguang Wu <fengguang.wu@intel.com> kernel/cgroup.c:2256:1-3: WARNING: PTR_RET can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(…)) + PTR_ERR Generated by: coccinelle/api/ptr_ret.cocci Signed-off-by: Fengguang Wu Signed-off-by: Tejun Heo — kernel/cgroup.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-)   diff –git a/kernel/cgroup.c b/kernel/cgroup.c index 750d0e1..15dcae7 100644 — a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -2171,9 +2171,7 @@ static …

Continue reading