Commit c11afaae49ecff435efb534d05074959cce1757a
Committed by
Greg Kroah-Hartman
1 parent
bb0a9747b4
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
staging: cxt1e1: sbecrc.c: Use NULL instead of 0
Pointers should be assigned NULL instead of 0. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/staging/cxt1e1/sbecrc.c
... | ... | @@ -88,7 +88,7 @@ |
88 | 88 | u_int32_t initialCrc, /* starting CRC */ |
89 | 89 | u_int32_t *result) |
90 | 90 | { |
91 | - u_int32_t *tbl = 0; | |
91 | + u_int32_t *tbl = NULL; | |
92 | 92 | u_int32_t temp1, temp2, crc; |
93 | 93 | |
94 | 94 | /* |
... | ... | @@ -102,7 +102,7 @@ |
102 | 102 | genCrcTable(tbl); |
103 | 103 | #else |
104 | 104 | tbl = (u_int32_t *) OS_kmalloc(CRC_TABLE_ENTRIES * sizeof(u_int32_t)); |
105 | - if (tbl == 0) { | |
105 | + if (!tbl) { | |
106 | 106 | *result = 0; /* dummy up return value due to malloc |
107 | 107 | * failure */ |
108 | 108 | return; |