Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21f9fcd8 authored by Duan Jiong's avatar Duan Jiong Committed by Jens Axboe
Browse files

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: default avatarDuan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent cb2da43e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);