aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/ptlrpc/import.c
diff options
context:
space:
mode:
authorAlexandr Terekhov <a.terekhov@gmail.com>2014-05-31 18:20:39 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-31 12:21:35 -0700
commit5bcfab136078d02e8ad990bffcb76d150be83dd9 (patch)
tree566091980655b2defdd2cdf9ac2f07f17adfd4a0 /drivers/staging/lustre/lustre/ptlrpc/import.c
parentRevert "staging: dgap: remove unneeded kfree() in dgap_tty_register_ports()" (diff)
downloadlinux-dev-5bcfab136078d02e8ad990bffcb76d150be83dd9.tar.xz
linux-dev-5bcfab136078d02e8ad990bffcb76d150be83dd9.zip
staging: lustre: fix integer as NULL pointer warnings
Fix several sparse warnings "Using plain integer as NULL pointer" Signed-off-by: Alexandr Terekhov <a.terekhov@gmail.com> drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 4 ++-- drivers/staging/lustre/lustre/obdclass/obd_mount.c | 4 ++-- drivers/staging/lustre/lustre/obdecho/lproc_echo.c | 4 ++-- drivers/staging/lustre/lustre/osc/osc_dev.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/import.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/staging/lustre/lustre/ptlrpc/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/ptlrpc/import.c b/drivers/staging/lustre/lustre/ptlrpc/import.c
index 1c73194421a6..8573f328bd2a 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/import.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/import.c
@@ -645,7 +645,7 @@ int ptlrpc_connect_import(struct obd_import *imp)
if (rc)
GOTO(out, rc);
- rc = sptlrpc_import_sec_adapt(imp, NULL, 0);
+ rc = sptlrpc_import_sec_adapt(imp, NULL, NULL);
if (rc)
GOTO(out, rc);