Skip to content

Commit b5768a7

Browse files
lonyelonalexdeucher
authored andcommitted
DRM: gpu: radeon: Fixed coding style issues
Fixed braces, an unnecessary if statement and added a missing space. Reviewed-by: Christian König <[email protected]> Signed-off-by: Sergio Miguéns Iglesias <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent c841e55 commit b5768a7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/gpu/drm/radeon/radeon_fb.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ radeonfb_open(struct fb_info *info, int user)
5454
struct radeon_fbdev *rfbdev = info->par;
5555
struct radeon_device *rdev = rfbdev->rdev;
5656
int ret = pm_runtime_get_sync(rdev->ddev->dev);
57+
5758
if (ret < 0 && ret != -EACCES) {
5859
pm_runtime_mark_last_busy(rdev->ddev->dev);
5960
pm_runtime_put_autosuspend(rdev->ddev->dev);
@@ -196,9 +197,8 @@ static int radeonfb_create_pinned_object(struct radeon_fbdev *rfbdev,
196197
radeon_bo_check_tiling(rbo, 0, 0);
197198
ret = radeon_bo_kmap(rbo, NULL);
198199
radeon_bo_unreserve(rbo);
199-
if (ret) {
200+
if (ret)
200201
goto out_unref;
201-
}
202202

203203
*gobj_p = gobj;
204204
return 0;
@@ -294,9 +294,6 @@ static int radeonfb_create(struct drm_fb_helper *helper,
294294
return 0;
295295

296296
out:
297-
if (rbo) {
298-
299-
}
300297
if (fb && ret) {
301298
drm_gem_object_put(gobj);
302299
drm_framebuffer_unregister_private(fb);

0 commit comments

Comments
 (0)