summary refs log tree commit diff
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-03-03 08:58:41 +0000
committerKalle Valo <kvalo@kernel.org>2022-03-10 18:17:53 +0200
commit857f837d856a5d78bb475b50524f03fd6d458960 (patch)
tree0f83d5cb47a12022332ed10429619097927a69fe
parent8cbc3d51b4ae5a2875422af9a955f29f73b1fe75 (diff)
downloadlinux-857f837d856a5d78bb475b50524f03fd6d458960.tar.gz
bcma: gpio: remove redundant re-assignment of chip->owner
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@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220303085841.1124766-1-colin.i.king@gmail.com
-rw-r--r--drivers/bcma/driver_gpio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/bcma/driver_gpio.c b/drivers/bcma/driver_gpio.c
index 8a1e4705bc87..1e74ec1c7f23 100644
--- a/drivers/bcma/driver_gpio.c
+++ b/drivers/bcma/driver_gpio.c
@@ -181,7 +181,6 @@ int bcma_gpio_init(struct bcma_drv_cc *cc)
 	chip->set		= bcma_gpio_set_value;
 	chip->direction_input	= bcma_gpio_direction_input;
 	chip->direction_output	= bcma_gpio_direction_output;
-	chip->owner		= THIS_MODULE;
 	chip->parent		= bus->dev;
 #if IS_BUILTIN(CONFIG_OF)
 	chip->of_node		= cc->core->dev.of_node;