From b2eaec6671ff7ff44bb2f93881ad30e6d6ba0d24 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 9 Nov 2015 15:40:47 +0100 Subject: csum: Remove unused parameter from calc_csum() The `ccsum' parameter to calc_csum() is never used and is set to 0 by all callers. There's no reason to keep it, so remove it. Signed-off-by: Tobias Klauser --- trafgen_parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trafgen_parser.y') diff --git a/trafgen_parser.y b/trafgen_parser.y index 1718f3d..21c3454 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -190,7 +190,7 @@ static void __set_csum16_static(size_t from, size_t to, enum csum which __maybe_ uint16_t sum; uint8_t *psum; - sum = htons(calc_csum(pkt->payload + from, to - from, 0)); + sum = htons(calc_csum(pkt->payload + from, to - from)); psum = (uint8_t *) ∑ set_byte(psum[0]); -- cgit v1.2.3-54-g00ecf