The logic for testing auto load failure in rtl8xxxu_auto_llt_table()
was inverted.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
int i;
val32 = rtl8xxxu_read32(priv, REG_AUTO_LLT);
- pr_info("AUTO_LLT = %08x\n", val32);
val32 |= AUTO_LLT_INIT_LLT;
rtl8xxxu_write32(priv, REG_AUTO_LLT, val32);
usleep_range(2, 4);
}
- if (i) {
+ if (!i) {
ret = -EBUSY;
dev_warn(&priv->udev->dev, "LLT table init failed\n");
}
- else
- dev_warn(&priv->udev->dev, "LLT table init success\n");
return ret;
}