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
committato da nshrivas
parent 5a6cc79b9e
commit a8edf330f0
12 ha cambiato i file con 49 aggiunte e 49 eliminazioni

Vedi File

@@ -298,7 +298,7 @@ htt_htc_pkt_alloc(struct htt_soc *soc)
}
HTT_TX_MUTEX_RELEASE(&soc->htt_tx_mutex);
if (pkt == NULL)
if (!pkt)
pkt = qdf_mem_malloc(sizeof(*pkt));
return &pkt->u.pkt; /* not actually a dereference */
}
@@ -498,7 +498,7 @@ dp_htt_h2t_send_complete(void *context, HTC_PACKET *htc_pkt)
* adf sendcomplete is required for windows only
*/
/* qdf_nbuf_set_sendcompleteflag(netbuf, TRUE); */
if (send_complete_part2 != NULL) {
if (send_complete_part2) {
send_complete_part2(
htt_pkt->soc_ctxt, htc_pkt->Status, netbuf);
}