From: Frank Mori Hess Date: Tue, 5 Aug 2003 19:23:11 +0000 (+0000) Subject: fix for NULL undefined? X-Git-Tag: r0_7_69~274 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e4dda0d331f11d6f56880bf0c65922ce080223a;p=comedi.git fix for NULL undefined? --- diff --git a/include/linux/module.h b/include/linux/module.h index 7f7c8ee7..935daca9 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -64,13 +64,13 @@ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) static inline int try_module_get(struct module *module) { - if( module == NULL ) return 1; + if( !module ) return 1; __MOD_INC_USE_COUNT( module ); return 1; } static inline void module_put(struct module *module) { - if( module == NULL ) return; + if( !module ) return; __MOD_DEC_USE_COUNT( module ); } #else