staging: vt6655: Replace MACvSetCurrBCNLength with VNSvOutPortW
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 22 May 2022 19:48:43 +0000 (21:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 05:58:40 +0000 (07:58 +0200)
Replace macro MACvSetCurrBCNLength with VNSvOutPortW and as it
was the only user, it can now be removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/8ff556c84b3a4a70e8151965bcf6357e1de61bd1.1653203927.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/mac.h
drivers/staging/vt6655/rxtx.c

index 57ae3bd..23ebae9 100644 (file)
@@ -570,11 +570,6 @@ do {                                                                       \
        VNSvOutPortD(iobase + MAC_REG_BCNDMAPTR,                \
                     dwCurrDescAddr)
 
-/* set the chip with current BCN length */
-#define MACvSetCurrBCNLength(iobase, wCurrBCNLength)           \
-       VNSvOutPortW(iobase + MAC_REG_BCNDMACTL + 2,            \
-                    wCurrBCNLength)
-
 #define MACvWriteBSSIDAddress(iobase, pbyEtherAddr)            \
 do {                                                           \
        iowrite8(1, iobase + MAC_REG_PAGE1SEL);                 \
index 71cbfa6..54b0556 100644 (file)
@@ -1422,7 +1422,7 @@ static int vnt_beacon_xmit(struct vnt_private *priv,
 
        MACvSetCurrBCNTxDescAddr(priv->port_offset, priv->tx_beacon_dma);
 
-       MACvSetCurrBCNLength(priv->port_offset, priv->wBCNBufLen);
+       VNSvOutPortW(priv->port_offset + MAC_REG_BCNDMACTL + 2, priv->wBCNBufLen);
        /* Set auto Transmit on */
        MACvRegBitsOn(priv->port_offset, MAC_REG_TCR, TCR_AUTOBCNTX);
        /* Poll Transmit the adapter */