pf: fix some cc --analyze warnings

Reviewed by:	kp
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2021-10-19 11:57:47 +00:00
parent 225639e7db
commit bcd4c17cca
3 changed files with 3 additions and 3 deletions

View File

@ -2474,7 +2474,7 @@ VNET_SYSINIT(vnet_pfsync_init, SI_SUB_PROTO_FIREWALL, SI_ORDER_ANY,
static void
vnet_pfsync_uninit(const void *unused __unused)
{
int ret;
int ret __diagused;
pfsync_pointers_uninit();

View File

@ -5612,7 +5612,7 @@ hook_pf(void)
{
struct pfil_hook_args pha;
struct pfil_link_args pla;
int ret;
int ret __diagused;
if (V_pf_pfil_hooked)
return;

View File

@ -1002,7 +1002,7 @@ pf_refragment6(struct ifnet *ifp, struct mbuf **m0, struct m_tag *mtag)
DPFPRINTF(("refragment error %d\n", error));
action = PF_DROP;
}
for (t = m; m; m = t) {
for (; m; m = t) {
t = m->m_nextpkt;
m->m_nextpkt = NULL;
m->m_flags |= M_SKIP_FIREWALL;