sh_eth: fix typo in comment to BCULR write
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 19 May 2018 21:05:02 +0000 (00:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 May 2018 22:56:43 +0000 (18:56 -0400)
Simon has noticed a typo in the comment accompaining the BCULR write --
fix it and move the comment before the write (following the style of
the other comments), while at it...

Reported-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c

index d71657d..d9cadfb 100644 (file)
@@ -1481,8 +1481,9 @@ static int sh_eth_dev_init(struct net_device *ndev)
        if (mdp->cd->nbst)
                sh_eth_modify(ndev, EDMR, EDMR_NBST, EDMR_NBST);
 
+       /* Burst cycle count upper-limit */
        if (mdp->cd->bculr)
-               sh_eth_write(ndev, 0x800, BCULR);       /* Burst sycle set */
+               sh_eth_write(ndev, 0x800, BCULR);
 
        sh_eth_write(ndev, mdp->cd->fcftr_value, FCFTR);