Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4be8959 authored by Kalle Valo's avatar Kalle Valo
Browse files

ath6kl: return error block size is not power of 2



Currently only a warning is emitted but no error is returned.

Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent cbf49a6f
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -621,6 +621,7 @@ int ath6kldev_setup(struct ath6kl_device *dev)
	/* must be a power of 2 */
	/* must be a power of 2 */
	if ((dev->htc_cnxt->block_sz & (dev->htc_cnxt->block_sz - 1)) != 0) {
	if ((dev->htc_cnxt->block_sz & (dev->htc_cnxt->block_sz - 1)) != 0) {
		WARN_ON(1);
		WARN_ON(1);
		status = -EINVAL;
		goto fail_setup;
		goto fail_setup;
	}
	}