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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 54e657d commit 7b2d8a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)