mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
soc: ti: knav_dma: Remove unused DMA_PRIO_MASK macro
DMA_PRIO_MASK (GENMASK(3, 0)) is defined alongside the other priority macros but is never referenced in the code. tx_priority and rx_priority are only ever assigned DMA_PRIO_DEFAULT (0) and are never sourced from device tree or user-controlled input, so no out-of-range value is possible. W=2 builds report: knav_dma.c:32:9: warning: macro is not used [-Wunused-macros] 32 | #define DMA_PRIO_MASK GENMASK(3, 0) Remove the dead macro. Reviewed-by: Sai Sree Kartheek Adivi <s-adivi@ti.com> Reviewed-by: Hari Prasath Gujulan Elango <gehariprasath@ti.com> Link: https://patch.msgid.link/20260512170623.3174416-9-nm@ti.com Signed-off-by: Nishanth Menon <nm@ti.com>
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
#define DMA_TX_FILT_EINFO BIT(30)
|
||||
#define DMA_TX_PRIO_SHIFT 0
|
||||
#define DMA_RX_PRIO_SHIFT 16
|
||||
#define DMA_PRIO_MASK GENMASK(3, 0)
|
||||
#define DMA_PRIO_DEFAULT 0
|
||||
#define DMA_RX_TIMEOUT_DEFAULT 17500 /* cycles */
|
||||
#define DMA_RX_TIMEOUT_MASK GENMASK(16, 0)
|
||||
|
||||
Reference in New Issue
Block a user