diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-06-14 15:39:11 +0100 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2019-06-27 10:18:28 +0200 |
commit | e61576c4b9ff59aea2719e3681c4a8809998555e (patch) | |
tree | 3922aab9cf4641ef658b9b1e1876aecfbe2892cf /drivers/gpu | |
parent | e5ff5344f4a44cf9f4606c5c2754d913f06aaae1 (diff) |
drm/mgag200: add in missing { } around if block
There is an if block that is missing the { } curly brackets. Add
these in.
Addresses-Coverity: ("Structurally dead code")
Fixes: 94dc57b10399 ("drm/mgag200: Rewrite cursor handling")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20190614143911.21806-1-colin.king@canonical.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_cursor.c | 3 |
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); |