]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: do not assign to never-read variable
authorKefu Chai <kchai@redhat.com>
Thu, 13 Jul 2017 10:44:45 +0000 (18:44 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 13 Jul 2017 16:40:38 +0000 (00:40 +0800)
this silences clang analyzer's warning of

Value stored to 'err' is never read

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc

index a39f58ce2149851ea780a9d6ec4db38b149f7f54..fc3564a8328a13d7dc1bc74912c1ddca61ec9c43 100644 (file)
@@ -6767,7 +6767,6 @@ int OSDMonitor::prepare_command_osd_destroy(
   if (err < 0) {
     if (err == -ENOENT) {
       idempotent_auth = true;
-      err = 0;
     } else {
       return err;
     }