Skip to content

Commit 7b2d8a0

Browse files
andy-shevlag-linaro
authored andcommitted
leds: gpio: Remove unneeded assignment
The initial ret is not used anywhere, drop the unneeded assignment. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20231016161005.1471768-5-andriy.shevchenko@linux.intel.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 54e657d commit 7b2d8a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/leds/leds-gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static int gpio_led_probe(struct platform_device *pdev)
255255
struct device *dev = &pdev->dev;
256256
struct gpio_led_platform_data *pdata = dev_get_platdata(dev);
257257
struct gpio_leds_priv *priv;
258-
int i, ret = 0;
258+
int i, ret;
259259

260260
if (pdata && pdata->num_leds) {
261261
priv = devm_kzalloc(dev, struct_size(priv, leds, pdata->num_leds), GFP_KERNEL);

0 commit comments

Comments
 (0)