net: qca_spi: remove QCASPI_MTU
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 29 May 2017 11:57:15 +0000 (13:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 17:57:29 +0000 (13:57 -0400)
There is no need for an additional MTU define.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/qca_spi.c

index f15554867ef750a30e2fe1ba1b9c8e64db3e1e89..74646286fd0f9ffeda7279f99a197a40f03f11d5 100644 (file)
@@ -69,7 +69,6 @@ static int qcaspi_pluggable = QCASPI_PLUGGABLE_MIN;
 module_param(qcaspi_pluggable, int, 0);
 MODULE_PARM_DESC(qcaspi_pluggable, "Pluggable SPI connection (yes/no).");
 
-#define QCASPI_MTU QCAFRM_MAX_MTU
 #define QCASPI_TX_TIMEOUT (1 * HZ)
 #define QCASPI_QCA7K_REBOOT_TIME_MS 1000
 
@@ -746,7 +745,7 @@ qcaspi_netdev_init(struct net_device *dev)
 {
        struct qcaspi *qca = netdev_priv(dev);
 
-       dev->mtu = QCASPI_MTU;
+       dev->mtu = QCAFRM_MAX_MTU;
        dev->type = ARPHRD_ETHER;
        qca->clkspeed = qcaspi_clkspeed;
        qca->burst_len = qcaspi_burst_len;