Skip to content

Commit

Permalink
smbd: Save a few lines with a "goto done;"
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
vlendec authored and jrasamba committed Aug 6, 2024
1 parent ec73654 commit cb67a70
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions source3/smbd/smb1_trans2.c
Original file line number Diff line number Diff line change
Expand Up @@ -4572,15 +4572,7 @@ static void call_trans2setpathinfo(
}

if (info_level_handled) {
handle_trans2setfilepathinfo_result(
conn,
req,
info_level,
status,
*ppdata,
data_return_size,
max_data_bytes);
return;
goto done;
}

/*
Expand All @@ -4601,6 +4593,7 @@ static void call_trans2setpathinfo(
total_data,
&data_return_size);

done:
handle_trans2setfilepathinfo_result(
conn,
req,
Expand Down

0 comments on commit cb67a70

Please sign in to comment.