Re: [PATCH] bcma: gpio: remove redundant re-assignment of chip->owner

From: Kalle Valo
Date: Thu Mar 10 2022 - 11:19:31 EST


Colin Ian King <colin.i.king@xxxxxxxxx> wrote:

> There are two identical assignments of chip->owner to the same value,
> the second assignment is redundant and can be removed.
>
> Cleans up cppcheck warning:
> drivers/bcma/driver_gpio.c:184:15: style: Variable 'chip->owner' is
> reassigned a value before the old one has been used. [redundantAssignment]
>
> Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx>

Patch applied to wireless-next.git, thanks.

857f837d856a bcma: gpio: remove redundant re-assignment of chip->owner

--
https://patchwork.kernel.org/project/linux-wireless/patch/20220303085841.1124766-1-colin.i.king@xxxxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches