Whamcloud - gitweb
b=13766
[fs/lustre-release.git] / lustre / include / lustre_export.h
index c87468b..7e4c8b9 100644 (file)
@@ -134,7 +134,8 @@ struct obd_export {
 
 static inline int exp_connect_cancelset(struct obd_export *exp)
 {
-        return exp ? !!(exp->exp_connect_flags & OBD_CONNECT_CANCELSET) : 0;
+        LASSERT(exp != NULL);
+        return !!(exp->exp_connect_flags & OBD_CONNECT_CANCELSET);
 }
 
 static inline int exp_connect_lru_resize(struct obd_export *exp)