Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44f68936 authored by Rohit Kumar's avatar Rohit Kumar Committed by Greg Kroah-Hartman
Browse files

drivers:staging:android:ashmem: Changing return type from int to loff_t



Changing return type from int to loff_t. Actual return type of the
function (vfs_llseek) is loff_t (long long). Here due to implicit
converion from long long to int, result will be implementation defined.

Signed-off-by: default avatarRohit Kumar <rohit12techie@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 294fb1d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -321,7 +321,7 @@ static ssize_t ashmem_read_iter(struct kiocb *iocb, struct iov_iter *iter)
static loff_t ashmem_llseek(struct file *file, loff_t offset, int origin)
{
	struct ashmem_area *asma = file->private_data;
	int ret;
	loff_t ret;

	mutex_lock(&ashmem_mutex);