Commit 275afcac authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

afs build fix



Bruce and David's patches clashed.

fs/afs/flock.c: In function 'afs_do_getlk':
fs/afs/flock.c:459: error: void value not ignored as it ought to be

Cc: "J. Bruce Fields" <bfields@fieldses.org>
Acked-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ed2c12f3
...@@ -456,7 +456,8 @@ static int afs_do_getlk(struct file *file, struct file_lock *fl) ...@@ -456,7 +456,8 @@ static int afs_do_getlk(struct file *file, struct file_lock *fl)
/* check local lock records first */ /* check local lock records first */
ret = 0; ret = 0;
if (posix_test_lock(file, fl) == 0) { posix_test_lock(file, fl);
if (fl->fl_type == F_UNLCK) {
/* no local locks; consult the server */ /* no local locks; consult the server */
ret = afs_vnode_fetch_status(vnode, NULL, key); ret = afs_vnode_fetch_status(vnode, NULL, key);
if (ret < 0) if (ret < 0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment