From 7113186c32c90713369a8d1a8e94d6a0ccba8394 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 10 Oct 2013 07:10:16 -0700 Subject: [PATCH] osdc/Objecter: clean up completion handlers that set *prval=0 If the OSD operations returns 0, these are unnecessary. If it does not, then these are misleading. In both cases here, the OSD sets the result to zero, so this has no client-visible change.r Signed-off-by: Sage Weil --- src/osdc/Objecter.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/osdc/Objecter.h b/src/osdc/Objecter.h index 8a6c243d339ad..938c97a4f3113 100644 --- a/src/osdc/Objecter.h +++ b/src/osdc/Objecter.h @@ -386,7 +386,6 @@ struct ObjectOperation { pwatchers->push_back(ow); } } - *prval = 0; } catch (buffer::error& e) { if (prval) @@ -424,8 +423,6 @@ struct ObjectOperation { } psnaps->seq = resp.seq; } - if (prval) - *prval = 0; } catch (buffer::error& e) { if (prval) -- 2.39.5