Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2019-10-01 08:53:16 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2019-10-01 08:53:16 +0200
commit732a22f70355de85f027593f0812dfe333320147 (patch)
treed99abb22a5ce517a1243122b2b397cc51e6caecc
parentb896ea744b23f0858a495b4bea35b43364029df6 (diff)
drm/mgag200: add in missing { } around if block (bsc#1152472)
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_cursor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_cursor.c b/drivers/gpu/drm/mgag200/mgag200_cursor.c
index f0c61a92351c..117eaedec7aa 100644
--- a/drivers/gpu/drm/mgag200/mgag200_cursor.c
+++ b/drivers/gpu/drm/mgag200/mgag200_cursor.c
@@ -99,10 +99,11 @@ int mga_crtc_cursor_set(struct drm_crtc *crtc,
/* Pin and map up-coming buffer to write colour indices */
ret = drm_gem_vram_pin(pixels_next, 0);
- if (ret)
+ if (ret) {
dev_err(&dev->pdev->dev,
"failed to pin cursor buffer: %d\n", ret);
goto err_drm_gem_vram_kunmap_src;
+ }
dst = drm_gem_vram_kmap(pixels_next, true, NULL);
if (IS_ERR(dst)) {
ret = PTR_ERR(dst);