diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-06-06 20:09:44 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-06-07 20:44:44 +0200 |
commit | 7094b91d1085d2262b09abc2be389db0b25bfe8c (patch) | |
tree | 54a86ba6763a859167dda2006067bc576dfdea34 /passt.c | |
parent | c80fa6a6bb4415ad48f9e11424310875d0d99bc7 (diff) | |
download | passt-7094b91d1085d2262b09abc2be389db0b25bfe8c.tar passt-7094b91d1085d2262b09abc2be389db0b25bfe8c.tar.gz passt-7094b91d1085d2262b09abc2be389db0b25bfe8c.tar.bz2 passt-7094b91d1085d2262b09abc2be389db0b25bfe8c.tar.lz passt-7094b91d1085d2262b09abc2be389db0b25bfe8c.tar.xz passt-7094b91d1085d2262b09abc2be389db0b25bfe8c.tar.zst passt-7094b91d1085d2262b09abc2be389db0b25bfe8c.zip |
Remove pointless macro parameters in CALL_PROTO_HANDLER
The 'c' parameter is always passed exactly 'c'. The 'now' parameter is
always passed exactly 'now'.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.c')
-rw-r--r-- | passt.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -84,7 +84,7 @@ static_assert(ARRAY_SIZE(epoll_type_str) == EPOLL_NUM_TYPES, */ static void post_handler(struct ctx *c, const struct timespec *now) { -#define CALL_PROTO_HANDLER(c, now, lc, uc) \ +#define CALL_PROTO_HANDLER(lc, uc) \ do { \ extern void \ lc ## _defer_handler (struct ctx *c) \ @@ -103,9 +103,9 @@ static void post_handler(struct ctx *c, const struct timespec *now) } while (0) /* NOLINTNEXTLINE(bugprone-branch-clone): intervals can be the same */ - CALL_PROTO_HANDLER(c, now, tcp, TCP); + CALL_PROTO_HANDLER(tcp, TCP); /* NOLINTNEXTLINE(bugprone-branch-clone): intervals can be the same */ - CALL_PROTO_HANDLER(c, now, udp, UDP); + CALL_PROTO_HANDLER(udp, UDP); flow_defer_handler(c, now); #undef CALL_PROTO_HANDLER |