Commit 7b2d8a05 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Lee Jones

leds: gpio: Remove unneeded assignment

The initial ret is not used anywhere, drop the unneeded assignment.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231016161005.1471768-5-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent 54e657d6
......@@ -255,7 +255,7 @@ static int gpio_led_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct gpio_led_platform_data *pdata = dev_get_platdata(dev);
struct gpio_leds_priv *priv;
int i, ret = 0;
int i, ret;
if (pdata && pdata->num_leds) {
priv = devm_kzalloc(dev, struct_size(priv, leds, pdata->num_leds), GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment