diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2016-01-25 09:13:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-25 21:51:52 +0300 |
commit | 36df745536ab81956cf68329c8049ad07f4a0cf0 (patch) | |
tree | d41c9c70cce9c19aa8c70834b6b3ecad3d9eac1a /drivers/net/ethernet/cadence/macb.c | |
parent | 5cfa30397bc3677250a3e71aebde7b40ecb2b25a (diff) | |
download | linux-36df745536ab81956cf68329c8049ad07f4a0cf0.tar.xz |
net: macb: fix build warning
We are getting build warning about:
macb.c:2889:13: warning: 'tx_clk' may be used uninitialized in this function
macb.c:2888:11: warning: 'hclk' may be used uninitialized in this function
In reality they are not used uninitialized as clk_init() will initialize
them, this patch will just silence the warning.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.c')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 9d9984a87d42..50c94104f19c 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -2823,7 +2823,7 @@ static int macb_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; struct device_node *phy_node; const struct macb_config *macb_config = NULL; - struct clk *pclk, *hclk, *tx_clk; + struct clk *pclk, *hclk = NULL, *tx_clk = NULL; unsigned int queue_mask, num_queues; struct macb_platform_data *pdata; bool native_io; |