X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre_export.h;h=7e4c8b9804f369fdca934be91730df3610ab871b;hp=c87468bd1a22f0fdc3a1b03fac615391829b41c0;hb=710793eab04e08c5ce671cb99ed1b2db4baa333f;hpb=4ab9da2f75d10022f6f65626f1cbef6bd611dae8 diff --git a/lustre/include/lustre_export.h b/lustre/include/lustre_export.h index c87468b..7e4c8b9 100644 --- a/lustre/include/lustre_export.h +++ b/lustre/include/lustre_export.h @@ -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)