projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
055f965
)
fix for NULL undefined?
author
Frank Mori Hess
<fmhess@speakeasy.net>
Tue, 5 Aug 2003 19:23:11 +0000
(19:23 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Tue, 5 Aug 2003 19:23:11 +0000
(19:23 +0000)
include/linux/module.h
patch
|
blob
|
history
diff --git
a/include/linux/module.h
b/include/linux/module.h
index 7f7c8ee72ae7f45a621ad839c8a90854256217b6..935daca999adb3b87652e6acf182c6a502c363d5 100644
(file)
--- 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