mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-24 19:45:06 +08:00
net: fec: change type of 'bufdesc_ex' to bool
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>
This commit is contained in:
parent
df406bc9c0
commit
217b5844e2
@ -502,7 +502,7 @@ struct fec_enet_private {
|
|||||||
int speed;
|
int speed;
|
||||||
struct completion mdio_done;
|
struct completion mdio_done;
|
||||||
int irq[FEC_IRQ_NUM];
|
int irq[FEC_IRQ_NUM];
|
||||||
int bufdesc_ex;
|
bool bufdesc_ex;
|
||||||
int pause_flag;
|
int pause_flag;
|
||||||
|
|
||||||
struct napi_struct napi;
|
struct napi_struct napi;
|
||||||
|
@ -3184,8 +3184,6 @@ fec_probe(struct platform_device *pdev)
|
|||||||
fep->pdev = pdev;
|
fep->pdev = pdev;
|
||||||
fep->dev_id = dev_id++;
|
fep->dev_id = dev_id++;
|
||||||
|
|
||||||
fep->bufdesc_ex = 0;
|
|
||||||
|
|
||||||
platform_set_drvdata(pdev, ndev);
|
platform_set_drvdata(pdev, ndev);
|
||||||
|
|
||||||
phy_node = of_parse_phandle(np, "phy-handle", 0);
|
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;
|
pdev->id_entry->driver_data & FEC_QUIRK_HAS_BUFDESC_EX;
|
||||||
if (IS_ERR(fep->clk_ptp)) {
|
if (IS_ERR(fep->clk_ptp)) {
|
||||||
fep->clk_ptp = NULL;
|
fep->clk_ptp = NULL;
|
||||||
fep->bufdesc_ex = 0;
|
fep->bufdesc_ex = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = fec_enet_clk_enable(ndev, true);
|
ret = fec_enet_clk_enable(ndev, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user