qcacmn: dp: 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 dp replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I61f3adab1208682d36235421f44a048e35df346d
CRs-Fixed: 2418258
This commit is contained in:
Jeff Johnson
2019-03-18 09:51:52 -07:00
committed by nshrivas
parent 5a6cc79b9e
commit a8edf330f0
12 changed files with 49 additions and 49 deletions

View File

@@ -398,7 +398,7 @@ void dp_rx_add_to_free_desc_list(union dp_rx_desc_list_elem_t **head,
((union dp_rx_desc_list_elem_t *)new)->next = *head;
*head = (union dp_rx_desc_list_elem_t *)new;
if (*tail == NULL)
if (!*tail)
*tail = *head;
}