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

Change-Id: I82e4bed12122ad5aea47650f6d75e72a52207883
CRs-Fixed: 2418401
diff --git a/components/ipa/core/src/wlan_ipa_core.c b/components/ipa/core/src/wlan_ipa_core.c
index edf2a76..21f8a1d 100644
--- a/components/ipa/core/src/wlan_ipa_core.c
+++ b/components/ipa/core/src/wlan_ipa_core.c
@@ -1263,13 +1263,13 @@
 	}
 
 	for (i = 0; i < WLAN_IPA_MAX_IFACE; i++) {
-		if (ipa_ctx->iface_context[i].tl_context == NULL) {
+		if (!ipa_ctx->iface_context[i].tl_context) {
 			iface_context = &(ipa_ctx->iface_context[i]);
 			break;
 		}
 	}
 
-	if (iface_context == NULL) {
+	if (!iface_context) {
 		ipa_err("All the IPA interfaces are in use");
 		status = QDF_STATUS_E_NOMEM;
 		QDF_ASSERT(0);
@@ -1280,7 +1280,7 @@
 	tl_context = (void *)cdp_peer_get_vdev_by_sta_id(ipa_ctx->dp_soc,
 							 ipa_ctx->dp_pdev,
 							 sta_id);
-	if (tl_context == NULL) {
+	if (!tl_context) {
 		ipa_err("Not able to get TL context sta_id: %d", sta_id);
 		status = QDF_STATUS_E_INVAL;
 		goto end;
@@ -1886,7 +1886,7 @@
 				sizeof(qdf_ipa_wlan_hdr_attrib_val_t));
 		msg_ex = qdf_mem_malloc(QDF_IPA_MSG_META_MSG_LEN(&meta));
 
-		if (msg_ex == NULL) {
+		if (!msg_ex) {
 			ipa_err("msg_ex allocation failed");
 			return QDF_STATUS_E_NOMEM;
 		}
@@ -2106,7 +2106,7 @@
 
 	qdf_list_remove_front(&ipa_ctx->pending_event,
 			(qdf_list_node_t **)&pending_event);
-	while (pending_event != NULL) {
+	while (pending_event) {
 		struct wlan_objmgr_pdev *pdev = ipa_ctx->pdev;
 		struct wlan_objmgr_psoc *psoc = wlan_pdev_get_psoc(pdev);
 		struct wlan_objmgr_vdev *vdev =
@@ -2428,7 +2428,7 @@
 	/* Send SCC/MCC Switching event to IPA */
 	QDF_IPA_MSG_META_MSG_LEN(&meta) = sizeof(*msg);
 	msg = qdf_mem_malloc(QDF_IPA_MSG_META_MSG_LEN(&meta));
-	if (msg == NULL) {
+	if (!msg) {
 		ipa_err("msg allocation failed");
 		return QDF_STATUS_E_NOMEM;
 	}