]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix unused variable warning in ipsec_mbuf.c
authorDimitry Andric <dim@FreeBSD.org>
Thu, 21 Jul 2022 20:03:50 +0000 (22:03 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Thu, 21 Jul 2022 20:12:01 +0000 (22:12 +0200)
commitdf5d2841d507589af0de7301f6cee3d2b98a35be
tree040e36863d915fe0de97f8cec06af37bf3236319
parenta848315f68047ae46a5d96cbc7a890e645ce646f
Fix unused variable warning in ipsec_mbuf.c

With clang 15, the following -Werror warning is produced:

    sys/netipsec/ipsec_mbuf.c:93:24: error: variable 'alloc' set but not used [-Werror,-Wunused-but-set-variable]
                    int todo, len, done, alloc;
                                         ^

The 'alloc' variable appears to have been a debugging aid that has never
been used for anything, so remove it.

MFC after: 3 days
sys/netipsec/ipsec_mbuf.c