mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 23:36:23 +09:00
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>
This commit is contained in:
parent
cb2da43e3d
commit
21f9fcd815
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user