From 5689a3c2d68cbe6286a4426559f06e210c17bbf4 Mon Sep 17 00:00:00 2001 From: Poornima G Date: Mon, 19 Feb 2018 20:46:21 +0530 Subject: nl-cache: Fix coverity issue RETURN_LOCAL Change-Id: Ic6fbd34aad2a5ae5e27d833300bcd1284cb98c24 Signed-off-by: Poornima G --- xlators/performance/nl-cache/src/nl-cache-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/performance/nl-cache/src/nl-cache-helper.c b/xlators/performance/nl-cache/src/nl-cache-helper.c index 1556f9ec952..67b17af8b69 100644 --- a/xlators/performance/nl-cache/src/nl-cache-helper.c +++ b/xlators/performance/nl-cache/src/nl-cache-helper.c @@ -158,7 +158,7 @@ __nlc_inode_ctx_get (xlator_t *this, inode_t *inode, nlc_ctx_t **nlc_ctx_p, *nlc_ctx_p = nlc_ctx; } if (ret == 0 && nlc_pe_p) { - nlc_pe = (void *) (long) (&nlc_pe_int); + nlc_pe = (void *) (long) (nlc_pe_int); *nlc_pe_p = nlc_pe; } return ret; -- cgit