From 1752e9c088d9bb7a3156dba9c66f7f64dd87afa9 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Thu, 23 Oct 2014 22:48:49 +0200
Subject: Curl_add_timecondition: skip superfluous varible assignment

Detected by cppcheck.
---
 lib/http.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/http.c b/lib/http.c
index 35baa3407..6d108dff5 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1659,10 +1659,8 @@ CURLcode Curl_add_timecondition(struct SessionHandle *data,
 {
   const struct tm *tm;
   char *buf = data->state.buffer;
-  CURLcode result = CURLE_OK;
   struct tm keeptime;
-
-  result = Curl_gmtime(data->set.timevalue, &keeptime);
+  CURLcode result = Curl_gmtime(data->set.timevalue, &keeptime);
   if(result) {
     failf(data, "Invalid TIMEVALUE");
     return result;
-- 
cgit v1.2.3