Skip to content

Commit

Permalink
fbdev/ps3fb: fix compile warning
Browse files Browse the repository at this point in the history
Commit 11bd593 ("fbdev/ps3fb: use vm_iomap_memory()") introduced
the following warning:

drivers/video/ps3fb.c: In function 'ps3fb_mmap':
drivers/video/ps3fb.c:712:2: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]

Fix this by adding the parentheses.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Tomi Valkeinen committed May 2, 2013
1 parent 9bf9d47 commit b358c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/ps3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ static int ps3fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
r = vm_iomap_memory(vma, info->fix.smem_start, info->fix.smem_len);

dev_dbg(info->device, "ps3fb: mmap framebuffer P(%lx)->V(%lx)\n",
info->fix.smem_start + vma->vm_pgoff << PAGE_SHIFT,
info->fix.smem_start + (vma->vm_pgoff << PAGE_SHIFT),
vma->vm_start);

return r;
Expand Down

0 comments on commit b358c6c

Please sign in to comment.