提交 ae919922 编写于 作者: S Sachin Kamat 提交者: Greg Kroah-Hartman

staging: cxt1e1: sbecom_inline_linux.h: Return NULL instead of 0

Functions returning pointer should return NULL instead of 0.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 55c19aa0
...@@ -73,7 +73,7 @@ OS_mem_token_alloc (size_t size) ...@@ -73,7 +73,7 @@ OS_mem_token_alloc (size_t size)
if (!skb) if (!skb)
{ {
//pr_warning("no mem in OS_mem_token_alloc !\n"); //pr_warning("no mem in OS_mem_token_alloc !\n");
return 0; return NULL;
} }
return skb; return skb;
} }
...@@ -103,7 +103,7 @@ OS_mem_token_data (void *token) ...@@ -103,7 +103,7 @@ OS_mem_token_data (void *token)
static inline void * static inline void *
OS_mem_token_next (void *token) OS_mem_token_next (void *token)
{ {
return 0; return NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册