Skip to content

Commit

Permalink
block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
Browse files Browse the repository at this point in the history
This patch fixes coccinelle error regarding usage of IS_ERR and
PTR_ERR instead of PTR_ERR_OR_ZERO.

Signed-off-by: Duan Jiong <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Duan Jiong authored and axboe committed Nov 8, 2013
1 parent 97597dc commit 8616ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-timeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static int __init fail_io_timeout_debugfs(void)
struct dentry *dir = fault_create_debugfs_attr("fail_io_timeout",
NULL, &fail_io_timeout);

return IS_ERR(dir) ? PTR_ERR(dir) : 0;
return PTR_ERR_OR_ZERO(dir);
}

late_initcall(fail_io_timeout_debugfs);
Expand Down

0 comments on commit 8616ebb

Please sign in to comment.