]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: lustre: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
authorValentina Manea <valentina.manea.m@gmail.com>
Wed, 23 Oct 2013 07:30:19 +0000 (10:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Oct 2013 03:23:53 +0000 (20:23 -0700)
This patch fixes coccinelle error regarding usage of IS_ERR and
PTR_ERR instead of PTR_ERR_OR_ZERO.

Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>
Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/fid/fid_request.c

index 66007b57018bd67a99ea38b1bbdc1c9749aea47a..79fc2fe131a2d2f7da4e057b3588564ba13ceaa5 100644 (file)
@@ -548,9 +548,7 @@ static int __init fid_mod_init(void)
        seq_type_proc_dir = lprocfs_register(LUSTRE_SEQ_NAME,
                                             proc_lustre_root,
                                             NULL, NULL);
-       if (IS_ERR(seq_type_proc_dir))
-               return PTR_ERR(seq_type_proc_dir);
-       return 0;
+       return PTR_ERR_OR_ZERO(seq_type_proc_dir);
 }
 
 static void __exit fid_mod_exit(void)