projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55c19aa
)
staging: cxt1e1: sbecom_inline_linux.h: Return NULL instead of 0
author
Sachin Kamat
<
[email protected]
>
Fri, 27 Sep 2013 04:06:29 +0000
(09:36 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 1 Oct 2013 01:48:40 +0000
(18:48 -0700)
Functions returning pointer should return NULL instead of 0.
Signed-off-by: Sachin Kamat <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/cxt1e1/sbecom_inline_linux.h
patch
|
blob
|
history
diff --git
a/drivers/staging/cxt1e1/sbecom_inline_linux.h
b/drivers/staging/cxt1e1/sbecom_inline_linux.h
index 3c6d1c0fc6d69050c893a320781facd7419114d8..ba3ff3efe0634356cb7488aa61f168ac798a0223 100644
(file)
--- a/
drivers/staging/cxt1e1/sbecom_inline_linux.h
+++ b/
drivers/staging/cxt1e1/sbecom_inline_linux.h
@@
-73,7
+73,7
@@
OS_mem_token_alloc (size_t size)
if (!skb)
{
//pr_warning("no mem in OS_mem_token_alloc !\n");
- return
0
;
+ return
NULL
;
}
return skb;
}
@@
-103,7
+103,7
@@
OS_mem_token_data (void *token)
static inline void *
OS_mem_token_next (void *token)
{
- return
0
;
+ return
NULL
;
}