提交 b4be8959 编写于 作者: K Kalle Valo

ath6kl: return error block size is not power of 2

Currently only a warning is emitted but no error is returned.
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 cbf49a6f
......@@ -621,6 +621,7 @@ int ath6kldev_setup(struct ath6kl_device *dev)
/* must be a power of 2 */
if ((dev->htc_cnxt->block_sz & (dev->htc_cnxt->block_sz - 1)) != 0) {
WARN_ON(1);
status = -EINVAL;
goto fail_setup;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册