projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ace5cb0
)
staging: lustre: ldlm: remove unused 'overlaps' variable
author
NeilBrown
<
[email protected]
>
Mon, 23 Oct 2017 00:53:49 +0000
(11:53 +1100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 3 Nov 2017 13:55:21 +0000
(14:55 +0100)
'overlaps' is never used, only incremented.
Signed-off-by: NeilBrown <
[email protected]
>
Reviewed-by: Andreas Dilger <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/lustre/lustre/ldlm/ldlm_flock.c
patch
|
blob
|
history
diff --git
a/drivers/staging/lustre/lustre/ldlm/ldlm_flock.c
b/drivers/staging/lustre/lustre/ldlm/ldlm_flock.c
index 431bad890abf7637114d3c4eac6b4543f880a336..bb3685dff02039045f38621f5ec48b86441d342a 100644
(file)
--- a/
drivers/staging/lustre/lustre/ldlm/ldlm_flock.c
+++ b/
drivers/staging/lustre/lustre/ldlm/ldlm_flock.c
@@
-133,7
+133,6
@@
static int ldlm_process_flock_lock(struct ldlm_lock *req)
struct ldlm_lock *new2 = NULL;
enum ldlm_mode mode = req->l_req_mode;
int added = (mode == LCK_NL);
- int overlaps = 0;
int splitted = 0;
const struct ldlm_callback_suite null_cbs = { };
@@
-226,8
+225,6
@@
reprocess:
lock->l_policy_data.l_flock.start)
break;
- ++overlaps;
-
if (new->l_policy_data.l_flock.start <=
lock->l_policy_data.l_flock.start) {
if (new->l_policy_data.l_flock.end <