Save a little stack by removing a used once intermediate variable.
MFC after: 3 days
This commit is contained in:
parent
89d74deb55
commit
c21bae587d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355141
@ -10288,15 +10288,13 @@ ipf_pcksum6(fin, ip6, off, len)
|
||||
{
|
||||
#ifdef _KERNEL
|
||||
struct mbuf *m;
|
||||
int sum;
|
||||
|
||||
m = fin->fin_m;
|
||||
if (m->m_len < sizeof(struct ip6_hdr)) {
|
||||
return 0xffff;
|
||||
}
|
||||
|
||||
sum = in6_cksum(m, ip6->ip6_nxt, off, len);
|
||||
return(sum);
|
||||
return(in6_cksum(m, ip6->ip6_nxt, off, len));
|
||||
#else
|
||||
u_short *sp;
|
||||
u_int sum;
|
||||
|
Loading…
Reference in New Issue
Block a user