Commit 8616ebb16bcef312024b9d28719f9bf5c5c3aafb

Authored by Duan Jiong
Committed by Jens Axboe
1 parent 97597dc08f

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@kernel.dk>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -31,7 +31,7 @@
31 31 struct dentry *dir = fault_create_debugfs_attr("fail_io_timeout",
32 32 NULL, &fail_io_timeout);
33 33  
34   - return IS_ERR(dir) ? PTR_ERR(dir) : 0;
  34 + return PTR_ERR_OR_ZERO(dir);
35 35 }
36 36  
37 37 late_initcall(fail_io_timeout_debugfs);