summaryrefslogtreecommitdiff
path: root/checksum.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-11-30 12:49:51 -0800
committerGuy Harris <guy@alum.mit.edu>2012-11-30 12:49:51 -0800
commit98d7c9335424ddcb6007f758ff2af6b0a2ad4333 (patch)
tree2cc87df78201566d032fc57bfd8400522b433b22 /checksum.c
parenta3a91e9584a6425e245d2417212a267e6a3d93c6 (diff)
downloadtcpdump-98d7c9335424ddcb6007f758ff2af6b0a2ad4333.tar.gz
Get rid of unnecessary assignment.
checksum isn't used until it's set later.
Diffstat (limited to 'checksum.c')
-rw-r--r--checksum.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/checksum.c b/checksum.c
index da4718ff..57c02bd1 100644
--- a/checksum.c
+++ b/checksum.c
@@ -152,8 +152,6 @@ create_osi_cksum (const u_int8_t *pptr, int checksum_offset, int length)
u_int16_t checksum;
int index;
- checksum = 0;
-
c0 = 0;
c1 = 0;