diff options
author | Sachidananda <sac@gluster.com> | 2010-07-20 05:15:56 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-07-20 09:46:04 -0700 |
commit | d257c6ba46bfb874961124cd02a526a2cd969347 (patch) | |
tree | f9e7b4f76af59f9659f2ed7f1b13a3047eea0138 /xlators/performance/io-cache/src | |
parent | fcf62afec2730e14372221e323127cc11dae46db (diff) |
Delete dead assignments.
Signed-off-by: Sachidananda Urs <sac@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1113 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1113
Diffstat (limited to 'xlators/performance/io-cache/src')
-rw-r--r-- | xlators/performance/io-cache/src/io-cache.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c index 4c633d824b2..e4ca446cf5b 100644 --- a/xlators/performance/io-cache/src/io-cache.c +++ b/xlators/performance/io-cache/src/io-cache.c @@ -90,10 +90,9 @@ ioc_inode_need_revalidate (ioc_inode_t *ioc_inode) { int8_t need_revalidate = 0; struct timeval tv = {0,}; - int32_t ret = -1; ioc_table_t *table = ioc_inode->table; - ret = gettimeofday (&tv, NULL); + gettimeofday (&tv, NULL); if (time_elapsed (&tv, &ioc_inode->cache.tv) >= table->cache_timeout) need_revalidate = 1; @@ -522,14 +521,10 @@ ioc_open_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret, ioc_local_t *local = NULL; ioc_table_t *table = NULL; ioc_inode_t *ioc_inode = NULL; - inode_t *inode = NULL; uint32_t weight = 0xffffffff; - const char *path = NULL; local = frame->local; table = this->private; - inode = local->file_loc.inode; - path = local->file_loc.path; if (op_ret != -1) { inode_ctx_get (fd->inode, this, &tmp_ioc_inode); |