Skip to content

Commit

Permalink
usb: bdc: Fix unused assignment in bdc_probe()
Browse files Browse the repository at this point in the history
Delete unused initialized value of 'ret', because it will
be assigned by the function clk_prepare_enable().

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
  • Loading branch information
Tang Bin authored and Felipe Balbi committed Oct 2, 2020
1 parent f0c4856 commit 2a87445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/udc/bdc/bdc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ static void bdc_phy_exit(struct bdc *bdc)
static int bdc_probe(struct platform_device *pdev)
{
struct bdc *bdc;
int ret = -ENOMEM;
int ret;
int irq;
u32 temp;
struct device *dev = &pdev->dev;
Expand Down

0 comments on commit 2a87445

Please sign in to comment.