summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/cw1200
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-06-04 14:44:50 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2013-06-10 18:41:25 (GMT)
commitcc2588eabbe46820a86e55fccec8b741e15f647f (patch)
treedfef960774abb09bcad284a6b2c093d786f8f3f0 /drivers/net/wireless/cw1200
parent99e94940697adec4f84758adb2db71f4a82c7ba5 (diff)
downloadlinux-cc2588eabbe46820a86e55fccec8b741e15f647f.tar.xz
cw1200: hwio: Remove an unnecessary goto
goto after return is wrong. The other code in this block needs to set an error value then goto an error release block. This one doesn't need to release anything and was likely a copy/paste remainder. Signed-off-by: Joe Perches <joe@perches.com> Acked-By: Solomon Peachy <pizza@shaftnet.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/cw1200')
-rw-r--r--drivers/net/wireless/cw1200/hwio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/cw1200/hwio.c b/drivers/net/wireless/cw1200/hwio.c
index 142f45ef..dad3fb3 100644
--- a/drivers/net/wireless/cw1200/hwio.c
+++ b/drivers/net/wireless/cw1200/hwio.c
@@ -178,7 +178,6 @@ int cw1200_indirect_read(struct cw1200_common *priv, u32 addr, void *buf,
if ((buf_len / 2) >= 0x1000) {
pr_err("Can't read more than 0xfff words.\n");
return -EINVAL;
- goto out;
}
priv->hwbus_ops->lock(priv->hwbus_priv);