summaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2025-07-09 20:05:13 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2025-07-25 19:40:16 +0300
commit17a20e09f086f2c574ac87f3cf6e14c4377f65f6 (patch)
tree718c19bff842cfcbf2ef90df467e0ae63562a477 /lib/crypto/mpi/mpi-sub-ui.c
parent7792c1e03054440c60d4bce0c06a31c134601997 (diff)
downloadlinux-17a20e09f086f2c574ac87f3cf6e14c4377f65f6.tar.xz
netfilter: nft_set: remove one argument from lookup and update functions
Return the extension pointer instead of passing it as a function argument to be filled in by the callee. As-is, whenever false is returned, the extension pointer is not used. For all set types, when true is returned, the extension pointer was set to the matching element. Only exception: nft_set_bitmap doesn't support extensions. Return a pointer to a static const empty element extension container. return false -> return NULL return true -> return the elements' extension pointer. This saves one function argument. Signed-off-by: Florian Westphal <fw@strlen.de> Reviewed-by: Stefano Brivio <sbrivio@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions