Remove dummy check in *flags assignment in memcached_fetch
authorDmitry Isaykin <isaikin@nikiasi.home>
Mon, 15 Feb 2010 20:45:37 +0000 (23:45 +0300)
committerDmitry Isaykin <isaikin@nikiasi.home>
Mon, 15 Feb 2010 20:45:37 +0000 (23:45 +0300)
libmemcached/fetch.c

index d76f19b21ac5e175f5d4c1a033b5d6db83c6caf1..321ff85e7d586f0b0ac473c886ec68cbfdcb3e5a 100644 (file)
@@ -37,10 +37,7 @@ char *memcached_fetch(memcached_st *ptr, char *key, size_t *key_length,
     *key_length= result_buffer->key_length;
   }
 
-  if (result_buffer->item_flags)
-    *flags= result_buffer->item_flags;
-  else
-    *flags= 0;
+  *flags= result_buffer->item_flags;
 
   return memcached_string_c_copy(&result_buffer->value);
 }