diff options
author | Phil Sutter <phil@nwl.cc> | 2022-12-20 16:31:47 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-12-21 17:50:31 +0100 |
commit | 25deaa3adacb81c2c6c8b04572f09aa7d6491abe (patch) | |
tree | 17c8a1cfbaa54f83edfa70bf074427f5256fa42d | |
parent | 990a7d902f574d3ce5067444fa5cbe76b793b8e2 (diff) |
conntrack: Fix for unused assignment in ct_save_snprintf()
Setting 'ret' without calling BUFFER_SIZE() is pointless.
Fixes: 1c596b9ec8f26 ("conntrack: implement save output format")
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | src/conntrack.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/conntrack.c b/src/conntrack.c index 07fae3d..2bd71e1 100644 --- a/src/conntrack.c +++ b/src/conntrack.c @@ -761,7 +761,6 @@ static int ct_save_snprintf(char *buf, size_t len, BUFFER_SIZE(ret, size, len, offset); break; default: - ret = 0; break; } |