aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpicoder.c
diff options
context:
space:
mode:
authorFlorian Westphal <[email protected]>2025-07-09 17:05:13 +0000
committerPablo Neira Ayuso <[email protected]>2025-07-25 16:40:16 +0000
commit17a20e09f086f2c574ac87f3cf6e14c4377f65f6 (patch)
tree718c19bff842cfcbf2ef90df467e0ae63562a477 /lib/crypto/mpi/mpicoder.c
parentnetfilter: nft_set_pipapo: remove unused arguments (diff)
downloadkernel-17a20e09f086f2c574ac87f3cf6e14c4377f65f6.tar.gz
kernel-17a20e09f086f2c574ac87f3cf6e14c4377f65f6.zip
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 <[email protected]> Reviewed-by: Stefano Brivio <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions