Skip to content

Commit

Permalink
leds: lp50xx: Remove unused field 'bank_modules' from 'struct lp50xx_…
Browse files Browse the repository at this point in the history
…led'

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>
  • Loading branch information
Christophe JAILLET authored and Lee Jones committed May 2, 2024
1 parent 678ba7d commit 221db01
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/leds/leds-lp50xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 221db01

Please sign in to comment.