summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/performance/io-cache/src/io-cache.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c
index 939d28f63e2..68191c56cf6 100644
--- a/xlators/performance/io-cache/src/io-cache.c
+++ b/xlators/performance/io-cache/src/io-cache.c
@@ -1411,10 +1411,8 @@ ioc_readdirp_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
char *path = NULL;
fd_t *fd = NULL;
- if (frame) {
- fd = frame->local;
- frame->local = NULL;
- }
+ fd = frame->local;
+ frame->local = NULL;
if (op_ret <= 0)
goto unwind;