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:
bb0a974
)
staging: cxt1e1: sbecrc.c: Use NULL instead of 0
author
Sachin Kamat
<
[email protected]
>
Fri, 27 Sep 2013 04:06:34 +0000
(09:36 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 1 Oct 2013 01:48:40 +0000
(18:48 -0700)
Pointers should be assigned NULL instead of 0.
Signed-off-by: Sachin Kamat <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/cxt1e1/sbecrc.c
patch
|
blob
|
history
diff --git
a/drivers/staging/cxt1e1/sbecrc.c
b/drivers/staging/cxt1e1/sbecrc.c
index 87512a53f7203b8ea66335cbcc6cbb2801708260..81fa8a3a462cc6e216b052b455791dcc7b544207 100644
(file)
--- a/
drivers/staging/cxt1e1/sbecrc.c
+++ b/
drivers/staging/cxt1e1/sbecrc.c
@@
-88,7
+88,7
@@
sbeCrc(u_int8_t *buffer, /* data buffer to crc */
u_int32_t initialCrc, /* starting CRC */
u_int32_t *result)
{
- u_int32_t *tbl =
0
;
+ u_int32_t *tbl =
NULL
;
u_int32_t temp1, temp2, crc;
/*
@@
-102,7
+102,7
@@
sbeCrc(u_int8_t *buffer, /* data buffer to crc */
genCrcTable(tbl);
#else
tbl = (u_int32_t *) OS_kmalloc(CRC_TABLE_ENTRIES * sizeof(u_int32_t));
- if (
tbl == 0
) {
+ if (
!tbl
) {
*result = 0; /* dummy up return value due to malloc
* failure */
return;