[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1383724531-15617-1-git-send-email-duanj.fnst@cn.fujitsu.com>
Date: Wed, 6 Nov 2013 15:55:31 +0800
From: Duan Jiong <duanj.fnst@...fujitsu.com>
To: kernel@...gutronix.de, linux@....linux.org.uk,
a.zummo@...ertech.it, airlied@...ux.ie, dmitry.torokhov@...il.com
Cc: linux-kernel@...r.kernel.org, rtc-linux@...glegroups.com,
dri-devel@...ts.freedesktop.org, linux-tegra@...r.kernel.org,
linux-input@...r.kernel.org, devel@...verdev.osuosl.org,
Duan Jiong <duanj.fnst@...fujitsu.com>
Subject: [PATCH] lustre/fld: 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@...fujitsu.com>
---
drivers/staging/lustre/lustre/fld/fld_request.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/staging/lustre/lustre/fld/fld_request.c b/drivers/staging/lustre/lustre/fld/fld_request.c
index e47fd50..3191a39 100644
--- a/drivers/staging/lustre/lustre/fld/fld_request.c
+++ b/drivers/staging/lustre/lustre/fld/fld_request.c
@@ -504,10 +504,7 @@ static int __init fld_mod_init(void)
fld_type_proc_dir = lprocfs_register(LUSTRE_FLD_NAME,
proc_lustre_root,
NULL, NULL);
- if (IS_ERR(fld_type_proc_dir))
- return PTR_ERR(fld_type_proc_dir);
-
- return 0;
+ return PTR_ERR_OR_ZERO(fld_type_proc_dir);
}
static void __exit fld_mod_exit(void)
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists