locks: flock_make_lock should return a struct file_lock (or PTR_ERR)
authorJeff Layton <jlayton@primarydata.com>
Thu, 4 Sep 2014 14:25:06 +0000 (10:25 -0400)
committerJeff Layton <jlayton@primarydata.com>
Tue, 7 Oct 2014 18:06:13 +0000 (14:06 -0400)
commit6e129d00689c4d75253d1d428e82047b0aef5891
tree5a23b9faf036d2a2559148136ed73e4c32cba9c5
parent7ca76311fe6c397e9f332e5e6c79e3310d5ee98a
locks: flock_make_lock should return a struct file_lock (or PTR_ERR)

Eliminate the need for a return pointer.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/locks.c