From: Kefu Chai Date: Thu, 13 Jul 2017 10:44:45 +0000 (+0800) Subject: mon: do not assign to never-read variable X-Git-Tag: v12.1.1~35^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=95c7a552fcdcb16028a9554e2f252aebf80f2135;p=ceph-ci.git mon: do not assign to never-read variable this silences clang analyzer's warning of Value stored to 'err' is never read Signed-off-by: Kefu Chai --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index a39f58ce214..fc3564a8328 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -6767,7 +6767,6 @@ int OSDMonitor::prepare_command_osd_destroy( if (err < 0) { if (err == -ENOENT) { idempotent_auth = true; - err = 0; } else { return err; }