ipfilter: Save a word of stack space

Rather than save the return code into an intermediate variable, which BTW
is optimized out anyway, explicitly remove the return code from the stack.

MFC after:	3 days
This commit is contained in:
Cy Schubert 2021-10-04 11:36:15 -07:00
parent 7ef45bd3cf
commit b7f127b6e5

View File

@ -1258,15 +1258,13 @@ ipf_p_ftp_valid(softf, ftp, side, buf, len)
size_t len;
{
ftpside_t *ftps;
int ret;
ftps = &ftp->ftp_side[side];
if (side == 0)
ret = ipf_p_ftp_client_valid(softf, ftps, buf, len);
return(ipf_p_ftp_client_valid(softf, ftps, buf, len));
else
ret = ipf_p_ftp_server_valid(softf, ftps, buf, len);
return ret;
return(ipf_p_ftp_server_valid(softf, ftps, buf, len));
}