From: J. Bruce Fields Date: Tue, 14 Nov 2006 21:54:36 +0000 (-0500) Subject: locks: kill redundant local variable X-Git-Tag: v2.6.24-rc1~1274^2~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=526985b9dd6ef7716b87f5fe6f0e2438ea3a89c7;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/fs/locks.c b/fs/locks.c index 51bae6227c2..efe1affe6be 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 lock_kernel(); if (request->fl_type != F_UNLCK) { for_each_lock(inode, before) { - struct file_lock *fl = *before; + fl = *before; if (!IS_POSIX(fl)) continue; if (!posix_locks_conflict(request, fl))