Skip to contentSkip to conversation

i2c: icy: Remove unused variable new_fwnode in icy_probe()

PATCH Applied Geert Uytterhoeven 3 participants 3 messages May 3, 2021 – May 25, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: icy: Remove unused variable new_fwnode in icy_probe()

The last user of new_fwnode was removed, leading to:

drivers/i2c/busses/i2c-icy.c: In function ‘icy_probe’:
drivers/i2c/busses/i2c-icy.c:126:24: warning: unused variable ‘new_fwnode’ [-Wunused-variable]
126 | struct fwnode_handle *new_fwnode;
| ^~~~~~~~~~

Fixes dd7a37102b79ae55 ("i2c: icy: Constify the software node")
---
 drivers/i2c/busses/i2c-icy.c | 1 -
 1 file changed, 1 deletion(-)
drivers/i2c/busses/i2c-icy.c +0 -1
index c8c422e9dda43393..5dae7cab72605592 100644
@@ -123,7 +123,6 @@ static int icy_probe(struct zorro_dev *z,
 {
 	struct icy_i2c *i2c;
 	struct i2c_algo_pcf_data *algo_data;
-	struct fwnode_handle *new_fwnode;
 	struct i2c_board_info ltc2990_info = {
 		.type		= "ltc2990",
 		.swnode		= &icy_ltc2990_node,
Signature · 1 line
2.25.1
Applied
#2 lore raw
In reply to Geert Uytterhoeven
Quoted 9 lines · Geert Uytterhoeven

The last user of new_fwnode was removed, leading to:

drivers/i2c/busses/i2c-icy.c: In function ‘icy_probe’:
drivers/i2c/busses/i2c-icy.c:126:24: warning: unused variable ‘new_fwnode’ [-Wunused-variable]
126 | struct fwnode_handle *new_fwnode;
| ^~~~~~~~~~

Fixes dd7a37102b79ae55 ("i2c: icy: Constify the software node")

Applied to for-current, thanks!