소스 검색

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>
Joe Perches 12 년 전
부모
커밋
cc2588eabb
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      drivers/net/wireless/cw1200/hwio.c

+ 0 - 1
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) {
 	if ((buf_len / 2) >= 0x1000) {
 		pr_err("Can't read more than 0xfff words.\n");
 		pr_err("Can't read more than 0xfff words.\n");
 		return -EINVAL;
 		return -EINVAL;
-		goto out;
 	}
 	}
 
 
 	priv->hwbus_ops->lock(priv->hwbus_priv);
 	priv->hwbus_ops->lock(priv->hwbus_priv);