mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00: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:
parent
3fb2e2aeaf
commit
78f420acc4
1 changed files with 4 additions and 8 deletions
|
@ -509,11 +509,9 @@ static int i801_transaction(struct i801_priv *priv, int xact)
|
||||||
result = wait_event_timeout(priv->waitq,
|
result = wait_event_timeout(priv->waitq,
|
||||||
(status = priv->status),
|
(status = priv->status),
|
||||||
adap->timeout);
|
adap->timeout);
|
||||||
if (!result) {
|
if (!result)
|
||||||
status = -ETIMEDOUT;
|
status = -ETIMEDOUT;
|
||||||
dev_warn(&priv->pci_dev->dev,
|
|
||||||
"Timeout waiting for interrupt!\n");
|
|
||||||
}
|
|
||||||
priv->status = 0;
|
priv->status = 0;
|
||||||
return i801_check_post(priv, status);
|
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,
|
result = wait_event_timeout(priv->waitq,
|
||||||
(status = priv->status),
|
(status = priv->status),
|
||||||
adap->timeout);
|
adap->timeout);
|
||||||
if (!result) {
|
if (!result)
|
||||||
status = -ETIMEDOUT;
|
status = -ETIMEDOUT;
|
||||||
dev_warn(&priv->pci_dev->dev,
|
|
||||||
"Timeout waiting for interrupt!\n");
|
|
||||||
}
|
|
||||||
priv->status = 0;
|
priv->status = 0;
|
||||||
return i801_check_post(priv, status);
|
return i801_check_post(priv, status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue