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: Rohit Kumar <rohit12techie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Rohit Kumar 2018-03-16 01:08:59 +05:30 committed by Greg Kroah-Hartman
parent 294fb1d2a2
commit 44f6893672

View file

@ -321,7 +321,7 @@ out_unlock:
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);