You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07: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:
committed by
Greg Kroah-Hartman
parent
f51e5a202e
commit
496baea013
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user