diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-11-09 15:40:47 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-11-09 15:40:47 +0100 |
commit | b2eaec6671ff7ff44bb2f93881ad30e6d6ba0d24 (patch) | |
tree | 0c4ddb694da06af1ded2fcd26acf29529c714477 /trafgen.c | |
parent | 66e558ed51ff7d3d7bebb5f5d56114df5eb77e96 (diff) |
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 <tklauser@distanz.ch>
Diffstat (limited to 'trafgen.c')
-rw-r--r-- | trafgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -333,7 +333,7 @@ static void apply_csum16(int id) switch (csum->which) { case CSUM_IP: sum = calc_csum(packets[id].payload + csum->from, - csum->to - csum->from + 1, 0); + csum->to - csum->from + 1); break; case CSUM_UDP: sum = p4_csum((void *) packets[id].payload + csum->from, |