From: Sachin Kamat Date: Fri, 27 Sep 2013 04:06:34 +0000 (+0530) Subject: staging: cxt1e1: sbecrc.c: Use NULL instead of 0 X-Git-Tag: MMI-PSA29.97-13-9~13364^2~532 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c11afaae49ecff435efb534d05074959cce1757a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: cxt1e1: sbecrc.c: Use NULL instead of 0 Pointers should be assigned NULL instead of 0. Signed-off-by: Sachin Kamat Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/cxt1e1/sbecrc.c b/drivers/staging/cxt1e1/sbecrc.c index 87512a53f720..81fa8a3a462c 100644 --- 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;