msm: kgsl: Change data type for ret in kgsl_mmap

ret variable is meant to store the return value which can be negative.
Change the data type from unsigned int to int.

Change-Id: I6ea46c40d22dfc6474bbfda9b0e7791d39798520
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
This commit is contained in:
Kamal Agrawal 2021-08-19 15:30:18 +05:30 • committed by Gerrit - the friendly Code Review server
commit b7e04c58bc

View file

@ -4175,12 +4175,13 @@ kgsl_get_unmapped_area(struct file *file, unsigned long addr,
static int kgsl_mmap(struct file *file, struct vm_area_struct *vma)
{
unsigned int ret, cache;
unsigned int cache;
unsigned long vma_offset = vma->vm_pgoff << PAGE_SHIFT;
struct kgsl_device_private *dev_priv = file->private_data;
struct kgsl_process_private *private = dev_priv->process_priv;
struct kgsl_mem_entry *entry = NULL;
struct kgsl_device *device = dev_priv->device;
int ret;
/* Handle leagacy behavior for memstore */