summaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorDuan Jiong2014-04-11 09:58:56 +0200
committerJens Axboe2014-04-11 16:09:47 +0200
commit21f9fcd81593e201172160853b8647336fb81f4f (patch)
tree50305acfde22c150f32edff52425f2bb2e62c9e6 /block/blk-core.c
parentblk-mq: simplify blk_mq_hw_sysfs_cpus_show() (diff)
downloadkernel-qcow2-linux-21f9fcd81593e201172160853b8647336fb81f4f.tar.gz
kernel-qcow2-linux-21f9fcd81593e201172160853b8647336fb81f4f.tar.xz
kernel-qcow2-linux-21f9fcd81593e201172160853b8647336fb81f4f.zip
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 7af4a4898dcb..c320def0fe81 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);