summaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2014-04-11 15:58:56 +0800
committerJens Axboe <axboe@fb.com>2014-04-11 08:09:47 -0600
commit21f9fcd81593e201172160853b8647336fb81f4f (patch)
tree50305acfde22c150f32edff52425f2bb2e62c9e6 /block/blk-core.c
parentcb2da43e3d02b745408252fe4c447b23b1f4fc7b (diff)
downloadop-kernel-dev-21f9fcd81593e201172160853b8647336fb81f4f.zip
op-kernel-dev-21f9fcd81593e201172160853b8647336fb81f4f.tar.gz
block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
This patch fixes coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 7af4a48..c320def 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1654,7 +1654,7 @@ static int __init fail_make_request_debugfs(void)
struct dentry *dir = fault_create_debugfs_attr("fail_make_request",
NULL, &fail_make_request);
- return IS_ERR(dir) ? PTR_ERR(dir) : 0;
+ return PTR_ERR_OR_ZERO(dir);
}
late_initcall(fail_make_request_debugfs);
OpenPOWER on IntegriCloud