projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbf49a6
)
ath6kl: return error block size is not power of 2
author
Kalle Valo
<kvalo@qca.qualcomm.com>
Wed, 5 Oct 2011 09:23:25 +0000
(12:23 +0300)
committer
Kalle Valo
<kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:50:55 +0000
(12:50 +0200)
Currently only a warning is emitted but no error is returned.
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/htc_hif.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath6kl/htc_hif.c
b/drivers/net/wireless/ath/ath6kl/htc_hif.c
index 37a13f099c64d529abd6802dc3d99a4fa78161b7..e9d34509a8618eab9f2e437aa8f851089b0e7eb8 100644
(file)
--- 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)
/* 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;
}