[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1442506481-8754-1-git-send-email-cse.anjalimenon@gmail.com>
Date: Thu, 17 Sep 2015 21:44:41 +0530
From: Anjali Menon <cse.anjalimenon@...il.com>
To: gregkh@...uxfoundation.org
Cc: oleg.drokin@...el.com, jinshan.xiong@...el.com,
linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org,
Anjali Menon <cse.anjalimenon@...il.com>
Subject: [PATCH] staging: lustre: lustre: lclient: Removed the else statement
Removed the else statement along with some unwanted brackets
to fix the following coding style warning detected by
checkpatch.
WARNING: else is not generally useful after a break or return
Signed-off-by: Anjali Menon <cse.anjalimenon@...il.com>
---
drivers/staging/lustre/lustre/lclient/lcommon_cl.c | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c b/drivers/staging/lustre/lustre/lclient/lcommon_cl.c
index ab6cb41..23092fc 100644
--- a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c
+++ b/drivers/staging/lustre/lustre/lclient/lcommon_cl.c
@@ -836,7 +836,7 @@ int ccc_prep_size(const struct lu_env *env, struct cl_object *obj,
*exceed = 1;
}
return result;
- } else {
+ }
/*
* region is within kms and, hence, within real file
* size (A). We need to increase i_size to cover the
@@ -847,14 +847,12 @@ int ccc_prep_size(const struct lu_env *env, struct cl_object *obj,
* which will always be >= the kms value here.
* b=11081
*/
- if (cl_isize_read(inode) < kms) {
- cl_isize_write_nolock(inode, kms);
- CDEBUG(D_VFSTRACE,
- DFID" updating i_size %llu\n",
- PFID(lu_object_fid(&obj->co_lu)),
- (__u64)cl_isize_read(inode));
-
- }
+ if (cl_isize_read(inode) < kms) {
+ cl_isize_write_nolock(inode, kms);
+ CDEBUG(D_VFSTRACE,
+ DFID" updating i_size %llu\n",
+ PFID(lu_object_fid(&obj->co_lu)),
+ (__u64)cl_isize_read(inode));
}
}
ccc_object_size_unlock(obj);
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists