From 8a1cbf3e742cf5f61446e28fd31268d93ab48bde Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Fri, 29 Mar 2013 17:06:08 -0700 Subject: [PATCH] rbd: remove alway-true else condition in import-diff Signed-off-by: Josh Durgin --- src/rbd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rbd.cc b/src/rbd.cc index 5099e27b16e77..f6cdb58390517 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -1479,7 +1479,7 @@ static int do_import_diff(librbd::Image &image, const char *path) data.append(bp); dout(2) << " write " << off << "~" << len << dendl; image.write(off, len, data); - } else if (tag == 'z') { + } else { dout(2) << " zero " << off << "~" << len << dendl; image.discard(off, len); } -- 2.39.5