staging:lustre: Fix sparse warning of plain integer as NULL
authorHimangi Saraogi <himangi774@gmail.com>
Thu, 13 Mar 2014 17:51:23 +0000 (23:21 +0530)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Mon, 17 Mar 2014 00:50:23 +0000 (17:50 -0700)
This patch fixes the following sparse warning:
drivers/staging/lustre/lustre/lov/lov_request.c:53:28: warning: Using plain integer as NULL pointer

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/lustre/lustre/lov/lov_request.c

index ca81cac9041c2e9b1d97edf5c64e3378511ff2dc..a5481d7eb5d609597e16fd0dded4b95b05b444b3 100644 (file)
@@ -50,7 +50,7 @@ static void lov_init_set(struct lov_request_set *set)
        atomic_set(&set->set_completes, 0);
        atomic_set(&set->set_success, 0);
        atomic_set(&set->set_finish_checked, 0);
-       set->set_cookies = 0;
+       set->set_cookies = NULL;
        INIT_LIST_HEAD(&set->set_list);
        atomic_set(&set->set_refcount, 1);
        init_waitqueue_head(&set->set_waitq);