Commit:     526985b9dd6ef7716b87f5fe6f0e2438ea3a89c7
Parent:     b842e240f27678aa5d71611cddc8d17a93fb0caf
Author:     J. Bruce Fields <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 14 16:54:36 2006 -0500
Committer:  J. Bruce Fields <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 18:32:45 2007 -0400

    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 <[EMAIL PROTECTED]>
 fs/locks.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/locks.c b/fs/locks.c
index 51bae62..efe1aff 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -819,7 +819,7 @@ static int __posix_lock_file(struct inode *inode, struct 
file_lock *request, str
        if (request->fl_type != F_UNLCK) {
                for_each_lock(inode, before) {
-                       struct file_lock *fl = *before;
+                       fl = *before;
                        if (!IS_POSIX(fl))
                        if (!posix_locks_conflict(request, fl))
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to