]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_kvs.cc: remove dead assignment
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 11 May 2014 09:52:04 +0000 (11:52 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 11 May 2014 09:52:04 +0000 (11:52 +0200)
Fix for:
[src/key_value_store/cls_kvs.cc:383] -> [src/key_value_store/cls_kvs.cc:386]:
 (performance) Variable 'r' is reassigned a value before the old one has been used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/key_value_store/cls_kvs.cc

index 7aa26852db9fe56f80fa3fef14948a3d17fd60f8..06266127dcc99b8143b5d3ba45cc5d8a780a366a 100644 (file)
@@ -380,8 +380,6 @@ static int omap_insert(cls_method_context_t hctx,
     }
   }
 
-  r = 0;
-
   bufferlist old_size;
   r = cls_cxx_getxattr(hctx, "size", &old_size);
   if (r < 0) {