From d7374684f648c1e45d695454f95a65acfe6d04e8 Mon Sep 17 00:00:00 2001 From: Nandaja Varma Date: Mon, 9 Feb 2015 17:16:22 +0530 Subject: marker, quota: Fixing the coverity issues Coverity CIDs: 1124601 1124690 1134008 1134009 Change-Id: I93992b11bb6d8f7edd065f602aec2cd7a8b433d0 BUG: 789278 Signed-off-by: Nandaja Varma Reviewed-on: http://review.gluster.org/9614 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/quota/src/quota.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'xlators/features/quota') diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 5fcc65b7243..2afe58f6210 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -99,10 +99,6 @@ quota_loc_fill (loc_t *loc, inode_t *inode, inode_t *parent, char *path) ret = 0; - if (ret < 0) { - loc_wipe (loc); - } - return ret; } @@ -1275,10 +1271,6 @@ quota_check_limit (call_frame_t *frame, inode_t *inode, xlator_t *this, _inode = parent; just_validated = 0; - if (_inode == NULL) { - break; - } - value = 0; inode_ctx_get (_inode, this, &value); ctx = (quota_inode_ctx_t *)(unsigned long)value; -- cgit