diff mbox series

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

Message ID 20210503070220.23932-1-geert@linux-m68k.org
State Accepted
Headers show
Series i2c: icy: Remove unused variable new_fwnode in icy_probe() | expand

Commit Message

Geert Uytterhoeven May 3, 2021, 7:02 a.m. UTC
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")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/i2c/busses/i2c-icy.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Max Staudt May 3, 2021, 1:05 p.m. UTC | #1
Thanks for catching this warning :)


Reviewed-by: Max Staudt <max@enpas.org>
Wolfram Sang May 25, 2021, 7:22 p.m. UTC | #2
On Mon, May 03, 2021 at 09:02:20AM +0200, Geert Uytterhoeven wrote:
> 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")
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Applied to for-current, thanks!
diff mbox series

Patch

diff --git a/drivers/i2c/busses/i2c-icy.c b/drivers/i2c/busses/i2c-icy.c
index c8c422e9dda43393..5dae7cab72605592 100644
--- a/drivers/i2c/busses/i2c-icy.c
+++ b/drivers/i2c/busses/i2c-icy.c
@@ -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,