qcacmn: htc: Replace explicit comparison to NULL

Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within htc replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: Ibb6d24aff9824d7e7cf253c1fe3081443cbfb63b
CRs-Fixed: 2418252
This commit is contained in:
Jeff Johnson
2019-03-18 09:47:18 -07:00
committed by nshrivas
parent 1fe4511e2e
commit 5a6cc79b9e
6 changed files with 51 additions and 51 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2014, 2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2014, 2017, 2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -127,9 +127,9 @@ static inline PDL_LIST dl_list_insert_head(PDL_LIST pList, PDL_LIST pAdd)
*/
static inline PDL_LIST dl_list_remove(PDL_LIST pDel)
{
if (pDel->pNext != NULL)
if (pDel->pNext)
pDel->pNext->pPrev = pDel->pPrev;
if (pDel->pPrev != NULL)
if (pDel->pPrev)
pDel->pPrev->pNext = pDel->pNext;
/* point back to itself just to be safe, if remove is called again */
pDel->pNext = pDel;