Skip to contentSkip to conversation

staging/lustre: fix sparse warning

PATCH New Denis Pithon 1 participant 1 message Apr 14, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging/lustre: fix sparse warning

Fix sparse complaint: "Using plain integer as NULL pointer"

---
 drivers/staging/lustre/lustre/ptlrpc/sec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/ptlrpc/sec.c +1 -1
index d8041805..b0a1c5a 100644
@@ -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,
Signature · 1 line
1.9.0