The current implementation includes a debug mask check both in the macro
expansion and in the function __ath12k_dbg(), which is unnecessary.
Simplify the code by removing the redundant check from the helper function
__ath12k_dbg().
While at this, rename the first argument in macro from ar to ab since the
first argument name in the function __ath12k_dbg() is ab.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00130-QCAHKSWPL_SILICONZ-1.97421.5 # Nicolas Escande
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Signed-off-by: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Tested-by: Nicolas Escande <nico.escande@gmail.com>
Link: https://patch.msgid.link/20250204-unlink_link_arvif_from_chanctx-v2-1-764fb5973c1a@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
 
 // SPDX-License-Identifier: BSD-3-Clause-Clear
 /*
  * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2025 Qualcomm Innovation Center, Inc. All rights reserved.
  */
 
 #include <linux/vmalloc.h>
        vaf.fmt = fmt;
        vaf.va = &args;
 
-       if (ath12k_debug_mask & mask)
-               dev_printk(KERN_DEBUG, ab->dev, "%pV", &vaf);
+       dev_printk(KERN_DEBUG, ab->dev, "%pV", &vaf);
 
        /* TODO: trace log */
 
 
 }
 #endif /* CONFIG_ATH12K_DEBUG */
 
-#define ath12k_dbg(ar, dbg_mask, fmt, ...)                     \
+#define ath12k_dbg(ab, dbg_mask, fmt, ...)                     \
 do {                                                           \
        typeof(dbg_mask) mask = (dbg_mask);                     \
        if (ath12k_debug_mask & mask)                           \
-               __ath12k_dbg(ar, mask, fmt, ##__VA_ARGS__);     \
+               __ath12k_dbg(ab, mask, fmt, ##__VA_ARGS__);     \
 } while (0)
 
 #endif /* _ATH12K_DEBUG_H_ */