mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
locks: kill redundant local variable
There's no need for another variable local to this loop; we can use the variable (of the same name!) already declared at the top of the function, and not used till later (at which point it's initialized, so this is safe). Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
b842e240f2
commit
526985b9dd
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ static int __posix_lock_file(struct inode *inode, struct file_lock *request, str
|
||||||
lock_kernel();
|
lock_kernel();
|
||||||
if (request->fl_type != F_UNLCK) {
|
if (request->fl_type != F_UNLCK) {
|
||||||
for_each_lock(inode, before) {
|
for_each_lock(inode, before) {
|
||||||
struct file_lock *fl = *before;
|
fl = *before;
|
||||||
if (!IS_POSIX(fl))
|
if (!IS_POSIX(fl))
|
||||||
continue;
|
continue;
|
||||||
if (!posix_locks_conflict(request, fl))
|
if (!posix_locks_conflict(request, fl))
|
||||||
|
|
Loading…
Reference in a new issue