]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: fec: change type of 'bufdesc_ex' to bool
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 17 Nov 2014 09:51:20 +0000 (10:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Nov 2014 20:19:31 +0000 (15:19 -0500)
fep->bufdesc_ex is treated as a boolean value, thus declare it as
such.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c

index 27e75cfdc490aad908c41d37edf36298f778e2e2..14188133db95f3b2776362d7cd9af5141b69471c 100644 (file)
@@ -502,7 +502,7 @@ struct fec_enet_private {
        int     speed;
        struct  completion mdio_done;
        int     irq[FEC_IRQ_NUM];
-       int     bufdesc_ex;
+       bool    bufdesc_ex;
        int     pause_flag;
 
        struct  napi_struct napi;
index 3dca494797bd2ebb8a7dd6c1983b7f19e72e481c..f3a6379c12a2a25289b809a69c8e390283d2ee17 100644 (file)
@@ -3184,8 +3184,6 @@ fec_probe(struct platform_device *pdev)
        fep->pdev = pdev;
        fep->dev_id = dev_id++;
 
-       fep->bufdesc_ex = 0;
-
        platform_set_drvdata(pdev, ndev);
 
        phy_node = of_parse_phandle(np, "phy-handle", 0);
@@ -3243,7 +3241,7 @@ fec_probe(struct platform_device *pdev)
                pdev->id_entry->driver_data & FEC_QUIRK_HAS_BUFDESC_EX;
        if (IS_ERR(fep->clk_ptp)) {
                fep->clk_ptp = NULL;
-               fep->bufdesc_ex = 0;
+               fep->bufdesc_ex = false;
        }
 
        ret = fec_enet_clk_enable(ndev, true);