staging/lustre/include: Adjust NULL comparison codestyle
[cascardo/linux.git] / drivers / staging / lustre / lustre / include / cl_object.h
index bd7acc2..373e772 100644 (file)
@@ -2613,7 +2613,7 @@ struct cl_site {
         * Statistical counters. Atomics do not scale, something better like
         * per-cpu counters is needed.
         *
-        * These are exported as /proc/fs/lustre/llite/.../site
+        * These are exported as /sys/kernel/debug/lustre/llite/.../site
         *
         * When interpreting keep in mind that both sub-locks (and sub-pages)
         * and top-locks (and top-pages) are accounted here.
@@ -2653,7 +2653,7 @@ static inline int lu_device_is_cl(const struct lu_device *d)
 
 static inline struct cl_device *lu2cl_dev(const struct lu_device *d)
 {
-       LASSERT(d == NULL || IS_ERR(d) || lu_device_is_cl(d));
+       LASSERT(!d || IS_ERR(d) || lu_device_is_cl(d));
        return container_of0(d, struct cl_device, cd_lu_dev);
 }
 
@@ -2664,7 +2664,7 @@ static inline struct lu_device *cl2lu_dev(struct cl_device *d)
 
 static inline struct cl_object *lu2cl(const struct lu_object *o)
 {
-       LASSERT(o == NULL || IS_ERR(o) || lu_device_is_cl(o->lo_dev));
+       LASSERT(!o || IS_ERR(o) || lu_device_is_cl(o->lo_dev));
        return container_of0(o, struct cl_object, co_lu);
 }
 
@@ -2681,7 +2681,7 @@ static inline struct cl_object *cl_object_next(const struct cl_object *obj)
 
 static inline struct cl_device *cl_object_device(const struct cl_object *o)
 {
-       LASSERT(o == NULL || IS_ERR(o) || lu_device_is_cl(o->co_lu.lo_dev));
+       LASSERT(!o || IS_ERR(o) || lu_device_is_cl(o->co_lu.lo_dev));
        return container_of0(o->co_lu.lo_dev, struct cl_device, cd_lu_dev);
 }