Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c11afaae authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman
Browse files

staging: cxt1e1: sbecrc.c: Use NULL instead of 0



Pointers should be assigned NULL instead of 0.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bb0a9747
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -88,7 +88,7 @@ sbeCrc(u_int8_t *buffer, /* data buffer to crc */
	u_int32_t initialCrc,      /* starting CRC */
	u_int32_t initialCrc,      /* starting CRC */
	u_int32_t *result)
	u_int32_t *result)
{
{
	u_int32_t     *tbl = 0;
	u_int32_t     *tbl = NULL;
	u_int32_t      temp1, temp2, crc;
	u_int32_t      temp1, temp2, crc;


	/*
	/*
@@ -102,7 +102,7 @@ sbeCrc(u_int8_t *buffer, /* data buffer to crc */
		genCrcTable(tbl);
		genCrcTable(tbl);
#else
#else
		tbl = (u_int32_t *) OS_kmalloc(CRC_TABLE_ENTRIES * sizeof(u_int32_t));
		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
			*result = 0;   /* dummy up return value due to malloc
					* failure */
					* failure */
			return;
			return;