summaryrefslogtreecommitdiff
path: root/csum.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-09 15:40:47 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-09 15:40:47 +0100
commitb2eaec6671ff7ff44bb2f93881ad30e6d6ba0d24 (patch)
tree0c4ddb694da06af1ded2fcd26acf29529c714477 /csum.h
parent66e558ed51ff7d3d7bebb5f5d56114df5eb77e96 (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 'csum.h')
-rw-r--r--csum.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/csum.h b/csum.h
index 0d92c30..6047c6f 100644
--- a/csum.h
+++ b/csum.h
@@ -19,8 +19,7 @@ static inline unsigned short csum(unsigned short *buf, int nwords)
return ~sum;
}
-static inline uint16_t calc_csum(void *addr, size_t len,
- int ccsum __maybe_unused)
+static inline uint16_t calc_csum(void *addr, size_t len)
{
return csum(addr, len >> 1);
}