From 141c83fa93693d750f804d5124d960992a723de7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 10 Feb 2010 10:52:28 -0800 Subject: [PATCH] ovsdb: Remove write-only variable from parse_body() in log.c. Found by Clang (http://clang-analyzer.llvm.org/). --- ovsdb/log.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ovsdb/log.c b/ovsdb/log.c index c8dac10c..837f2155 100644 --- a/ovsdb/log.c +++ b/ovsdb/log.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2009 Nicira Networks +/* Copyright (c) 2009, 2010 Nicira Networks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -183,14 +183,12 @@ static struct ovsdb_error * parse_body(struct ovsdb_log *file, off_t offset, unsigned long int length, uint8_t sha1[SHA1_DIGEST_SIZE], struct json **jsonp) { - unsigned long int bytes_left; struct json_parser *parser; struct sha1_ctx ctx; sha1_init(&ctx); parser = json_parser_create(JSPF_TRAILER); - bytes_left = length; while (length > 0) { char input[BUFSIZ]; int chunk; -- 2.30.2