diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2014-04-11 09:58:56 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-11 16:09:47 +0200 |
commit | 21f9fcd81593e201172160853b8647336fb81f4f (patch) | |
tree | 50305acfde22c150f32edff52425f2bb2e62c9e6 /block | |
parent | blk-mq: simplify blk_mq_hw_sysfs_cpus_show() (diff) | |
download | linux-21f9fcd81593e201172160853b8647336fb81f4f.tar.xz 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')
-rw-r--r-- | block/blk-core.c | 2 |
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); |