]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: cleanup some sparse messages
authorYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 24 Oct 2008 17:47:07 +0000 (10:47 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 24 Oct 2008 17:47:07 +0000 (10:47 -0700)
src/kernel/caps.c
src/kernel/proc.c
src/kernel/super.c

index b56694df0c2c074261ab54305185d58e3b75eee0..9071bf8918cec86a0e3e63dd77bcaaa0a2c44f0c 100644 (file)
@@ -960,7 +960,7 @@ start:
         */
        if ((newcaps & CEPH_CAP_RDCACHE) &&            /* we just got RDCACHE */
            (cap->issued & CEPH_CAP_RDCACHE) == 0 &&    /* and didn't have it */
-           (__ceph_caps_issued(ci, 0) & CEPH_CAP_RDCACHE) == 0)
+           (__ceph_caps_issued(ci, NULL) & CEPH_CAP_RDCACHE) == 0)
                ci->i_rdcache_gen++;
 
        /*
index 129b9539cc8abf65d4e283eb70c89f5d7f41ccf7..5eb6a9c1ce3eae1ca9547616d0029eab47ed98e4 100644 (file)
@@ -4,11 +4,11 @@
 #include <asm/uaccess.h>
 
 
+#include "ceph_debug.h"
 int ceph_debug_proc = -1;
 #define DOUT_MASK DOUT_MASK_PROC
 #define DOUT_VAR ceph_debug_proc
 #define DOUT_PREFIX "proc: "
-#include "ceph_debug.h"
 
 #include "super.h"
 
index 2518a6c004614de39c60664fae6faef918b077d3..23f1cb3932b3115cb32e522fe257a40bcefb825f 100644 (file)
@@ -1121,7 +1121,7 @@ out_proc:
 out_kobj:
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
        kobject_put(ceph_kobj);
-       ceph_kobj = 0;
+       ceph_kobj = NULL;
 out:
 #endif
        return ret;
@@ -1136,7 +1136,7 @@ static void __exit exit_ceph(void)
        ceph_proc_cleanup();
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
        kobject_put(ceph_kobj);
-       ceph_kobj = 0;
+       ceph_kobj = NULL;
 #endif
 #ifdef CONFIG_CEPH_BOOKKEEPER
        ceph_bookkeeper_finalize();