Revert "i2c: isch: Add missed 'else'"

This reverts commit 2beda8e3ef.
This commit is contained in:
Ksawlii 2024-11-24 00:23:13 +01:00
parent 377f09846f
commit 0d59e15c6b

View file

@ -99,7 +99,8 @@ static int sch_transaction(void)
if (retries > MAX_RETRIES) {
dev_err(&sch_adapter.dev, "SMBus Timeout!\n");
result = -ETIMEDOUT;
} else if (temp & 0x04) {
}
if (temp & 0x04) {
result = -EIO;
dev_dbg(&sch_adapter.dev, "Bus collision! SMBus may be "
"locked until next hard reset. (sorry!)\n");