staging/lustre: fix sparse warning
authorDenis Pithon <denis.pithon@gmail.com>
Mon, 14 Apr 2014 16:25:30 +0000 (18:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Apr 2014 03:24:31 +0000 (20:24 -0700)
Fix sparse complaint: "Using plain integer as NULL pointer"

Signed-off-by: Denis Pithon <denis.pithon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/sec.c

index d80418057f296f7167b3355f56c689e051cd4c01..b0a1c5a0d5cc803e45526033c0689d8a5f236d1f 100644 (file)
@@ -354,7 +354,7 @@ static int import_sec_check_expire(struct obd_import *imp)
                return 0;
 
        CDEBUG(D_SEC, "found delayed sec adapt expired, do it now\n");
-       return sptlrpc_import_sec_adapt(imp, NULL, 0);
+       return sptlrpc_import_sec_adapt(imp, NULL, NULL);
 }
 
 static int import_sec_validate_get(struct obd_import *imp,