summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@fieldses.org>2006-11-14 16:54:36 -0500
committerJ. Bruce Fields <bfields@citi.umich.edu>2007-10-09 18:32:45 -0400
commit526985b9dd6ef7716b87f5fe6f0e2438ea3a89c7 (patch)
treee22c895d58413a2b784b7e91a9c6d73e724a1838
parentb842e240f27678aa5d71611cddc8d17a93fb0caf (diff)
downloadkernel-crypto-526985b9dd6ef7716b87f5fe6f0e2438ea3a89c7.tar.gz
kernel-crypto-526985b9dd6ef7716b87f5fe6f0e2438ea3a89c7.tar.xz
kernel-crypto-526985b9dd6ef7716b87f5fe6f0e2438ea3a89c7.zip
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>
-rw-r--r--fs/locks.c2
1 files changed, 1 insertions, 1 deletions
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))