diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-10-05 05:23:25 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-11-11 05:50:55 -0500 |
commit | b4be8959c2cca0a0d3136f9d3bf06a52252911f4 (patch) | |
tree | 833962986d2fea34e082a376bd31a09fb707139b | |
parent | cbf49a6fff1d87510f36afe7e7cec188e452f1db (diff) |
ath6kl: return error block size is not power of 2
Currently only a warning is emitted but no error is returned.
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc_hif.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc_hif.c b/drivers/net/wireless/ath/ath6kl/htc_hif.c index 37a13f099c64..e9d34509a861 100644 --- a/drivers/net/wireless/ath/ath6kl/htc_hif.c +++ b/drivers/net/wireless/ath/ath6kl/htc_hif.c | |||
@@ -621,6 +621,7 @@ int ath6kldev_setup(struct ath6kl_device *dev) | |||
621 | /* must be a power of 2 */ | 621 | /* must be a power of 2 */ |
622 | if ((dev->htc_cnxt->block_sz & (dev->htc_cnxt->block_sz - 1)) != 0) { | 622 | if ((dev->htc_cnxt->block_sz & (dev->htc_cnxt->block_sz - 1)) != 0) { |
623 | WARN_ON(1); | 623 | WARN_ON(1); |
624 | status = -EINVAL; | ||
624 | goto fail_setup; | 625 | goto fail_setup; |
625 | } | 626 | } |
626 | 627 | ||