mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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:
parent
1ca91eb817
commit
b7e04c58bc
1 changed files with 2 additions and 1 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue