Skip to content

Commit

Permalink
Removed duplicated (and unneeded) goto
Browse files Browse the repository at this point in the history
Remove an unneeded goto (and also was duplicated goto target name).

Signed-off-by: Steve French <smfrench@gmail.com>
  • Loading branch information
Steve French committed Nov 18, 2013
1 parent 9bf0c9c commit 7d3fb24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fs/cifs/smb2pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2161,11 +2161,9 @@ send_set_info(const unsigned int xid, struct cifs_tcon *tcon,
rc = SendReceive2(xid, ses, iov, num, &resp_buftype, 0);
rsp = (struct smb2_set_info_rsp *)iov[0].iov_base;

if (rc != 0) {
if (rc != 0)
cifs_stats_fail_inc(tcon, SMB2_SET_INFO_HE);
goto out;
}
out:

free_rsp_buf(resp_buftype, rsp);
kfree(iov);
return rc;
Expand Down

0 comments on commit 7d3fb24

Please sign in to comment.