[patch] drm/gma500: cleanup in psb_mode_operation_ioctl() (original) (raw)

Dan Carpenter dan.carpenter at oracle.com
Tue Feb 18 06:59:26 PST 2014


It looks like the "mode" test was changed at some point and but it wasn't totally cleaned up. I've removed the unneeded indent block and the duplicative test for "if (mode)".

Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 1199180667c9..411ed5b80d53 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c @@ -534,24 +534,22 @@ static int psb_mode_operation_ioctl(struct drm_device *dev, void *data, }

     /* drm_crtc_convert_umode(mode, umode); */

@@ -562,8 +560,7 @@ static int psb_mode_operation_ioctl(struct drm_device *dev, void *data, }

     /*do some clean up work*/


More information about the dri-devel mailing list