From 8e4dda0d331f11d6f56880bf0c65922ce080223a Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 5 Aug 2003 19:23:11 +0000 Subject: [PATCH] fix for NULL undefined? --- include/linux/module.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2