projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
678ba7d
)
leds: lp50xx: Remove unused field 'bank_modules' from 'struct lp50xx_led'
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sun, 28 Apr 2024 17:15:24 +0000
(19:15 +0200)
committer
Lee Jones
<lee@kernel.org>
Thu, 2 May 2024 17:10:28 +0000
(18:10 +0100)
In 'struct lp50xx_led', the 'bank_modules' field is unused. Remove it.
Found with cppcheck, unusedStructMember.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link:
https://lore.kernel.org/r/bc2e5e57b93ca0a33bcc84e9bdc89f26fc8f6d57.1714324500.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-lp50xx.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-lp50xx.c
b/drivers/leds/leds-lp50xx.c
index 68c4d9967d6831c5bf1a64c7836f328c62c0b1c8..407eddcf17c07fd17998ea74b619f8dfb19c26d3 100644
(file)
--- a/
drivers/leds/leds-lp50xx.c
+++ b/
drivers/leds/leds-lp50xx.c
@@
-265,7
+265,6
@@
static const struct lp50xx_chip_info lp50xx_chip_info_tbl[] = {
struct lp50xx_led {
struct led_classdev_mc mc_cdev;
struct lp50xx *priv;
- unsigned long bank_modules;
u8 ctrl_bank_enabled;
int led_number;
};