Commit 117738c4 authored by Antonino Daplas's avatar Antonino Daplas Committed by Linus Torvalds

[PATCH] radeonfb: Fix spurious error return in FBIO_RADEON_SET_MIRROR

FBIO_RADEON_SET_MIRROR always returns with -EINVAL even if successful due to
an inappropriate fall-through.
Signed-off-by: default avatarAndreas Schwab <schwab@suse.de>
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ec567d00
......@@ -913,7 +913,7 @@ static int radeonfb_ioctl (struct inode *inode, struct file *file, unsigned int
OUTREG(CRTC_EXT_CNTL, tmp);
break;
return 0;
case FBIO_RADEON_GET_MIRROR:
if (!rinfo->is_mobility)
return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment