aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r--drivers/gpu/drm/drm_crtc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index a177d0abb8bb..da737ef7759e 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -1829,7 +1829,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data,
1829 struct drm_display_mode *mode = NULL; 1829 struct drm_display_mode *mode = NULL;
1830 struct drm_mode_set set; 1830 struct drm_mode_set set;
1831 uint32_t __user *set_connectors_ptr; 1831 uint32_t __user *set_connectors_ptr;
1832 int ret = 0; 1832 int ret;
1833 int i; 1833 int i;
1834 1834
1835 if (!drm_core_check_feature(dev, DRIVER_MODESET)) 1835 if (!drm_core_check_feature(dev, DRIVER_MODESET))
@@ -2248,7 +2248,7 @@ int drm_mode_addfb2(struct drm_device *dev,
2248 struct drm_mode_fb_cmd2 *r = data; 2248 struct drm_mode_fb_cmd2 *r = data;
2249 struct drm_mode_config *config = &dev->mode_config; 2249 struct drm_mode_config *config = &dev->mode_config;
2250 struct drm_framebuffer *fb; 2250 struct drm_framebuffer *fb;
2251 int ret = 0; 2251 int ret;
2252 2252
2253 if (!drm_core_check_feature(dev, DRIVER_MODESET)) 2253 if (!drm_core_check_feature(dev, DRIVER_MODESET))
2254 return -EINVAL; 2254 return -EINVAL;
@@ -2403,7 +2403,7 @@ int drm_mode_dirtyfb_ioctl(struct drm_device *dev,
2403 struct drm_framebuffer *fb; 2403 struct drm_framebuffer *fb;
2404 unsigned flags; 2404 unsigned flags;
2405 int num_clips; 2405 int num_clips;
2406 int ret = 0; 2406 int ret;
2407 2407
2408 if (!drm_core_check_feature(dev, DRIVER_MODESET)) 2408 if (!drm_core_check_feature(dev, DRIVER_MODESET))
2409 return -EINVAL; 2409 return -EINVAL;
@@ -2602,7 +2602,7 @@ int drm_mode_attachmode_ioctl(struct drm_device *dev,
2602 struct drm_display_mode *mode; 2602 struct drm_display_mode *mode;
2603 struct drm_mode_object *obj; 2603 struct drm_mode_object *obj;
2604 struct drm_mode_modeinfo *umode = &mode_cmd->mode; 2604 struct drm_mode_modeinfo *umode = &mode_cmd->mode;
2605 int ret = 0; 2605 int ret;
2606 2606
2607 if (!drm_core_check_feature(dev, DRIVER_MODESET)) 2607 if (!drm_core_check_feature(dev, DRIVER_MODESET))
2608 return -EINVAL; 2608 return -EINVAL;
@@ -2656,7 +2656,7 @@ int drm_mode_detachmode_ioctl(struct drm_device *dev,
2656 struct drm_connector *connector; 2656 struct drm_connector *connector;
2657 struct drm_display_mode mode; 2657 struct drm_display_mode mode;
2658 struct drm_mode_modeinfo *umode = &mode_cmd->mode; 2658 struct drm_mode_modeinfo *umode = &mode_cmd->mode;
2659 int ret = 0; 2659 int ret;
2660 2660
2661 if (!drm_core_check_feature(dev, DRIVER_MODESET)) 2661 if (!drm_core_check_feature(dev, DRIVER_MODESET))
2662 return -EINVAL; 2662 return -EINVAL;
@@ -3065,7 +3065,7 @@ int drm_mode_connector_update_edid_property(struct drm_connector *connector,
3065 struct edid *edid) 3065 struct edid *edid)
3066{ 3066{
3067 struct drm_device *dev = connector->dev; 3067 struct drm_device *dev = connector->dev;
3068 int ret = 0, size; 3068 int ret, size;
3069 3069
3070 if (connector->edid_blob_ptr) 3070 if (connector->edid_blob_ptr)
3071 drm_property_destroy_blob(dev, connector->edid_blob_ptr); 3071 drm_property_destroy_blob(dev, connector->edid_blob_ptr);