mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
phy: ti: dm816x: remove set but not used variable 'phy_data'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/phy/ti/phy-dm816x-usb.c:192:29: warning: variable phy_data set but not used [-Wunused-but-set-variable] It is never used, so can be removed. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:
parent
4bd5ead82d
commit
54fad40d3f
1 changed files with 0 additions and 3 deletions
|
@ -189,7 +189,6 @@ static int dm816x_usb_phy_probe(struct platform_device *pdev)
|
||||||
struct phy_provider *phy_provider;
|
struct phy_provider *phy_provider;
|
||||||
struct usb_otg *otg;
|
struct usb_otg *otg;
|
||||||
const struct of_device_id *of_id;
|
const struct of_device_id *of_id;
|
||||||
const struct usb_phy_data *phy_data;
|
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
of_id = of_match_device(of_match_ptr(dm816x_usb_phy_id_table),
|
of_id = of_match_device(of_match_ptr(dm816x_usb_phy_id_table),
|
||||||
|
@ -220,8 +219,6 @@ static int dm816x_usb_phy_probe(struct platform_device *pdev)
|
||||||
if (phy->usbphy_ctrl == 0x2c)
|
if (phy->usbphy_ctrl == 0x2c)
|
||||||
phy->instance = 1;
|
phy->instance = 1;
|
||||||
|
|
||||||
phy_data = of_id->data;
|
|
||||||
|
|
||||||
otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL);
|
otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL);
|
||||||
if (!otg)
|
if (!otg)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Loading…
Reference in a new issue