From f1a8f5fbb3b69f4fe0bd739271ea8284c95db235 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 20 Mar 2019 12:15:21 -0700 Subject: [PATCH] qcacmn: regulatory: 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 umac regulatory replace any such comparisons with logical operations performed on the pointer itself. Change-Id: If2fdfbf7b4d96a8af7f5eaf390e73f96ceff3dcf CRs-Fixed: 2420152 --- umac/regulatory/dispatcher/src/wlan_reg_services_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umac/regulatory/dispatcher/src/wlan_reg_services_api.c b/umac/regulatory/dispatcher/src/wlan_reg_services_api.c index 2fc2c6ecc3a6..b4c5cfc4cf86 100644 --- a/umac/regulatory/dispatcher/src/wlan_reg_services_api.c +++ b/umac/regulatory/dispatcher/src/wlan_reg_services_api.c @@ -564,7 +564,7 @@ QDF_STATUS wlan_reg_get_chip_mode(struct wlan_objmgr_pdev *pdev, pdev_priv_obj = wlan_objmgr_pdev_get_comp_private_obj(pdev, WLAN_UMAC_COMP_REGULATORY); - if (NULL == pdev_priv_obj) { + if (!pdev_priv_obj) { reg_err("reg pdev private obj is NULL"); return QDF_STATUS_E_FAULT; } @@ -590,7 +590,7 @@ QDF_STATUS wlan_reg_get_freq_range(struct wlan_objmgr_pdev *pdev, pdev_priv_obj = wlan_objmgr_pdev_get_comp_private_obj(pdev, WLAN_UMAC_COMP_REGULATORY); - if (NULL == pdev_priv_obj) { + if (!pdev_priv_obj) { reg_err("reg pdev private obj is NULL"); return QDF_STATUS_E_FAULT; }