mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 06:18:45 -04:00
i2c: i801: Remove unneeded warning after wait_event_timeout timeout
When passing -ETIMEDOUT to i801_check_post() it will emit a timeout error message. I don't see much benefit in an additional warning stating more or less the same. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Tested-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
This commit is contained in:
committed by
Wolfram Sang
parent
3fb2e2aeaf
commit
78f420acc4
@@ -509,11 +509,9 @@ static int i801_transaction(struct i801_priv *priv, int xact)
|
||||
result = wait_event_timeout(priv->waitq,
|
||||
(status = priv->status),
|
||||
adap->timeout);
|
||||
if (!result) {
|
||||
if (!result)
|
||||
status = -ETIMEDOUT;
|
||||
dev_warn(&priv->pci_dev->dev,
|
||||
"Timeout waiting for interrupt!\n");
|
||||
}
|
||||
|
||||
priv->status = 0;
|
||||
return i801_check_post(priv, status);
|
||||
}
|
||||
@@ -732,11 +730,9 @@ static int i801_block_transaction_byte_by_byte(struct i801_priv *priv,
|
||||
result = wait_event_timeout(priv->waitq,
|
||||
(status = priv->status),
|
||||
adap->timeout);
|
||||
if (!result) {
|
||||
if (!result)
|
||||
status = -ETIMEDOUT;
|
||||
dev_warn(&priv->pci_dev->dev,
|
||||
"Timeout waiting for interrupt!\n");
|
||||
}
|
||||
|
||||
priv->status = 0;
|
||||
return i801_check_post(priv, status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user