Skip to contentSkip to conversation

i2c/busses/drivers/img: Remove unnecessary (void*) conversions

PATCH New Li zeming 1 participant 1 message Jul 27, 2022 I2C subsystem host drivers

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 i2c/busses/drivers/img: Remove unnecessary (void*) conversions

Remove unnecessary void* type castings.

---
 drivers/i2c/busses/i2c-img-scb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-img-scb.c +1 -1
index 8e987945ed45..d72211cfda03 100644
@@ -913,7 +913,7 @@ static unsigned int img_i2c_auto(struct img_i2c *i2c,
 
 static irqreturn_t img_i2c_isr(int irq, void *dev_id)
 {
-	struct img_i2c *i2c = (struct img_i2c *)dev_id;
+	struct img_i2c *i2c = dev_id;
 	u32 int_status, line_status;
 	/* We handle transaction completion AFTER accessing registers */
 	unsigned int hret;
Signature · 1 line
2.18.2