summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/nmclan_cs.c
diff options
context:
space:
mode:
authorJunxiao Chang <junxiao.chang@intel.com>2022-10-25 16:17:47 +0800
committerPaolo Abeni <pabeni@redhat.com>2022-10-27 11:36:11 +0200
commit330543d04f2c9c5924736d81f67b50b925bd0864 (patch)
treee40014fda9cbe93a51f0a3dd812249a173e1df0b /drivers/net/ethernet/amd/nmclan_cs.c
parent95d9a3dab109f2806980d55634972120824a5a5a (diff)
downloadlinux-330543d04f2c9c5924736d81f67b50b925bd0864.tar.bz2
net: stmmac: remove duplicate dma queue channel macros
It doesn't need extra macros for queue 0 & 4. Same macro could be used for all 8 queues. Related queue/channel functions could be combined together. Original macro which has two same parameters is unsafe macro and might have potential side effects. Each MTL RxQ DMA channel mask is 4 bits, so using (0xf << chan) instead of GENMASK(x + 3, x) to avoid unsafe macro. Signed-off-by: Junxiao Chang <junxiao.chang@intel.com> Link: https://lore.kernel.org/r/20221025081747.1884926-1-junxiao.chang@intel.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/amd/nmclan_cs.c')
0 files changed, 0 insertions, 0 deletions