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

Commit cc2588ea authored by Joe Perches's avatar Joe Perches Committed by John W. Linville
Browse files

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: default avatarJoe Perches <joe@perches.com>
Acked-By: default avatarSolomon Peachy <pizza@shaftnet.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 99e94940
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);