Skip to content

Commit

Permalink
usb: musb: remove redundant assignment to variable ret
Browse files Browse the repository at this point in the history
Variable ret is being initialized with a value that is never read,
it is assigned a new value later on. The assignment is redundant
and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200316211136.2274-2-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Colin Ian King authored and Greg Kroah-Hartman committed Mar 17, 2020
1 parent b80e3e8 commit c87c273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/musb/mediatek.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ static int mtk_musb_probe(struct platform_device *pdev)
struct platform_device_info pinfo;
struct device *dev = &pdev->dev;
struct device_node *np = dev->of_node;
int ret = -ENOMEM;
int ret;

glue = devm_kzalloc(dev, sizeof(*glue), GFP_KERNEL);
if (!glue)
Expand Down

0 comments on commit c87c273

Please sign in to comment.