|
@@ -1692,7 +1692,7 @@ static int ican3_get_berr_counter(const struct net_device *ndev,
|
|
|
return ret;
|
|
|
|
|
|
ret = wait_for_completion_timeout(&mod->buserror_comp, HZ);
|
|
|
- if (ret <= 0) {
|
|
|
+ if (ret == 0) {
|
|
|
dev_info(mod->dev, "%s timed out\n", __func__);
|
|
|
return -ETIMEDOUT;
|
|
|
}
|
|
@@ -1718,7 +1718,7 @@ static ssize_t ican3_sysfs_show_term(struct device *dev,
|
|
|
return ret;
|
|
|
|
|
|
ret = wait_for_completion_timeout(&mod->termination_comp, HZ);
|
|
|
- if (ret <= 0) {
|
|
|
+ if (ret == 0) {
|
|
|
dev_info(mod->dev, "%s timed out\n", __func__);
|
|
|
return -ETIMEDOUT;
|
|
|
}
|