Re: [patch] iscsi-target: remove duplicate return

Nicholas A. Bellinger
2011-08-08T21:08:17Z

On Sat, 2011-08-06 at 07:29 -0700, Dan Carpenter wrote:
> We returned on the line before already.
>
> Signed-off-by: Dan Carpenter <error27@gmail.com>
>
> diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c
> index c24fb10..6a4ea29 100644
> --- a/drivers/target/iscsi/iscsi_target.c
> +++ b/drivers/target/iscsi/iscsi_target.c
> @@ -2243,7 +2243,6 @@ static int iscsit_handle_snack(
> case 0:
> return iscsit_handle_recovery_datain_or_r2t(conn, buf,
> hdr->itt, hdr->ttt, hdr->begrun, hdr->runlength);
> - return 0;
> case ISCSI_FLAG_SNACK_TYPE_STATUS:
> return iscsit_handle_status_snack(conn, hdr->itt, hdr->ttt,
> hdr->begrun, hdr->runlength);
> --

Thanks Dan, committed as 69b0ec3c38

--nab