iio: light: apds9160: Remove duplicate assignment of chip->client
PATCH 1/1 iio: light: apds9160: Remove duplicate assignment of chip->client
chip->client is already assigned a few lines earlier in apds9160_probe(). Drop the redundant assignment.
Signed-off-by Oscar Alejandro Sánchez Lucero <[email protected]>
--- drivers/iio/light/apds9160.c | 1 - 1 file changed, 1 deletion(-)
drivers/iio/light/apds9160.c +0 -1
@@ -1518,7 +1518,6 @@ static int apds9160_probe(struct i2c_client *client)return dev_err_probe (dev,PTR_ERR (chip->regmap),"regmap initialization failed.\n" ); - chip->client = client;mutex_init (&chip->lock); ret =apds9160_detect (chip);
---
base-commit: 9437ee8b6cf607e883b36e44bd755968daaebd48
change-id: 20261130-apds9160-cleanup-43968b6d8b00
Best regards,
Signature · 1 line
Oscar Alejandro Sánchez Lucero <[email protected]>
Quoted 5 lines · Oscar Alejandro Sánchez Lucero
chip->clientis already assigned a few lines earlier inapds9160_probe(). Drop the redundant assignment.Signed-off-by Oscar Alejandro Sánchez Lucero <[email protected]>---
Reviewed-by Joshua Crofts <[email protected]>
Signature · 2 lines
Kind regards, Joshua Crofts