From: Liu Yuan <[email protected]>

Signed-off-by: Liu Yuan <[email protected]>
---
 sheep/object_cache.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sheep/object_cache.c b/sheep/object_cache.c
index 3b6ecbe..222e797 100644
--- a/sheep/object_cache.c
+++ b/sheep/object_cache.c
@@ -661,9 +661,8 @@ static int object_cache_lookup(struct object_cache *oc, 
uint32_t idx,
                        } else {
                                ret = SD_RES_NO_CACHE;
                        }
-                       return ret;
                }
-               return ret;
+               goto out;
        }
 
        flags |= O_CREAT | O_TRUNC;
-- 
1.7.10.2

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to