Message ID | 20210223020925.22856-1-dingsenjie@163.com |
---|---|
State | New |
Headers | show |
Series | i2c/busses:remove unneeded variable: "ret" | expand |
diff --git a/drivers/i2c/busses/i2c-aspeed.c b/drivers/i2c/busses/i2c-aspeed.c index 724bf30..efad900 100644 --- a/drivers/i2c/busses/i2c-aspeed.c +++ b/drivers/i2c/busses/i2c-aspeed.c @@ -175,7 +175,6 @@ struct aspeed_i2c_bus { static int aspeed_i2c_recover_bus(struct aspeed_i2c_bus *bus) { unsigned long time_left, flags; - int ret = 0; u32 command; spin_lock_irqsave(&bus->lock, flags); @@ -232,7 +231,7 @@ static int aspeed_i2c_recover_bus(struct aspeed_i2c_bus *bus) out: spin_unlock_irqrestore(&bus->lock, flags); - return ret; + return 0; reset_out: spin_unlock_irqrestore(&bus->lock, flags);