mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Staging: lustre: lov: Pull assignments out of function call
Assignments in function call arguments are undesirable. So pull such assignments out before function call. Made a coccinelle script to detect such cases: @@ expression fn,b,d; @@ * fn(...,d=b,...); Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f51e5a202e
commit
496baea013
1 changed files with 2 additions and 1 deletions
|
|
@ -129,7 +129,8 @@ int lov_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm,
|
|||
"stripe %d KMS %sing %llu->%llu\n",
|
||||
stripe, kms > loi->loi_kms ? "increase":"shrink",
|
||||
loi->loi_kms, kms);
|
||||
loi_kms_set(loi, loi->loi_lvb.lvb_size = kms);
|
||||
loi->loi_lvb.lvb_size = kms;
|
||||
loi_kms_set(loi, loi->loi_lvb.lvb_size);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue