From: Dmitry Isaykin Date: Mon, 15 Feb 2010 20:45:37 +0000 (+0300) Subject: Remove dummy check in *flags assignment in memcached_fetch X-Git-Tag: 0.40~38^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3716f9e7bd4b70a234a43aecb6491a65aac0e07a;p=awesomized%2Flibmemcached Remove dummy check in *flags assignment in memcached_fetch --- diff --git a/libmemcached/fetch.c b/libmemcached/fetch.c index d76f19b2..321ff85e 100644 --- a/libmemcached/fetch.c +++ b/libmemcached/fetch.c @@ -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); }