net/axgbe: fix jumbo setting overwritten
authorRavi Kumar <ravi1.kumar@amd.com>
Wed, 2 May 2018 08:47:24 +0000 (04:47 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 2 May 2018 17:28:48 +0000 (19:28 +0200)
Stored register value to enable jumbo frame was always
overwritten. Assigning value based on rx_buf_size.

Coverity issue: 277239
Fixes: 7c4158a5b592 ("net/axgbe: add DMA programming and start/stop")

Signed-off-by: Ravi Kumar <ravi1.kumar@amd.com>
drivers/net/axgbe/axgbe_dev.c

index d05f9c8..707f1ee 100644 (file)
@@ -1019,7 +1019,6 @@ static void axgbe_config_jumbo_enable(struct axgbe_port *pdata)
        unsigned int val;
 
        val = (pdata->rx_buf_size > AXGMAC_STD_PACKET_MTU) ? 1 : 0;
-       val = 1;
 
        AXGMAC_IOWRITE_BITS(pdata, MAC_RCR, JE, val);
 }