[sheepdog] [PATCH] minor: clean code in ops.c

Kai Zhang kyle at zelin.io
Sat Jun 29 04:26:17 CEST 2013


Signed-off-by: Kai Zhang <kyle at zelin.io>
---
 sheep/ops.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/sheep/ops.c b/sheep/ops.c
index 9b129ba..5641e81 100644
--- a/sheep/ops.c
+++ b/sheep/ops.c
@@ -820,8 +820,6 @@ static int local_flush_vdi(struct request *req)
 	if (sys->enable_object_cache) {
 		uint32_t vid = oid_to_vid(req->rq.obj.oid);
 		ret = object_cache_flush_vdi(vid);
-		if (ret != SD_RES_SUCCESS)
-			return ret;
 	}
 
 	return ret;
-- 
1.7.9.5




More information about the sheepdog mailing list