summaryrefslogtreecommitdiff
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorHeena Sirwani <heenasirwani@gmail.com>2014-10-07 17:27:54 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-20 10:29:10 +0800
commit114114a2a340e999277ce3fa833b4546f4e9b853 (patch)
tree8520342dc90ae38806e42b0e3ba702e8d78fbe08 /drivers/staging/lustre
parente588f1bf8e8e9ec43369a35c11d4d8c8a846a4a7 (diff)
Staging: lustre: lustre: osc: Remove variable that is not very useful.
The following patch removes a variable that is not very useful using coccinelle. The semantic patch used was: @@ identifier ret; @@ -int ret = 0; ... when != ret when strict -return ret; +return 0; Signed-off-by: Heena Sirwani <heenasirwani@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/osc/osc_cache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/osc/osc_cache.c b/drivers/staging/lustre/lustre/osc/osc_cache.c
index 7734d666b7a1..806fd397b721 100644
--- a/drivers/staging/lustre/lustre/osc/osc_cache.c
+++ b/drivers/staging/lustre/lustre/osc/osc_cache.c
@@ -539,7 +539,6 @@ static int osc_extent_merge(const struct lu_env *env, struct osc_extent *cur,
int osc_extent_release(const struct lu_env *env, struct osc_extent *ext)
{
struct osc_object *obj = ext->oe_obj;
- int rc = 0;
LASSERT(atomic_read(&ext->oe_users) > 0);
LASSERT(sanity_check(ext) == 0);
@@ -571,7 +570,7 @@ int osc_extent_release(const struct lu_env *env, struct osc_extent *ext)
osc_io_unplug_async(env, osc_cli(obj), obj);
}
osc_extent_put(env, ext);
- return rc;
+ return 0;
}
static inline int overlapped(struct osc_extent *ex1, struct osc_extent *ex2)