Skip to content

Commit db77a57

Browse files
stefan11111metux
authored andcommitted
modesetting: don't return a value from drmmode_bo_destroy
Signed-off-by: stefan11111 <[email protected]>
1 parent 49c9aaa commit db77a57

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

hw/xfree86/drivers/video/modesetting/drmmode_display.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ drmmode_crtc_flip(xf86CrtcPtr crtc, uint32_t fb_id, int x, int y,
10091009
fb_id, flags, data);
10101010
}
10111011

1012-
int
1012+
void
10131013
drmmode_bo_destroy(drmmode_ptr drmmode, drmmode_bo *bo)
10141014
{
10151015
int ret;
@@ -1026,8 +1026,6 @@ drmmode_bo_destroy(drmmode_ptr drmmode, drmmode_bo *bo)
10261026
if (ret == 0)
10271027
bo->dumb = NULL;
10281028
}
1029-
1030-
return 0;
10311029
}
10321030

10331031
uint32_t

hw/xfree86/drivers/video/modesetting/drmmode_display.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Bool drmmode_is_format_supported(ScrnInfoPtr scrn, uint32_t format,
322322
uint64_t modifier, Bool async_flip);
323323
int drmmode_bo_import(drmmode_ptr drmmode, drmmode_bo *bo,
324324
uint32_t *fb_id);
325-
int drmmode_bo_destroy(drmmode_ptr drmmode, drmmode_bo *bo);
325+
void drmmode_bo_destroy(drmmode_ptr drmmode, drmmode_bo *bo);
326326
uint32_t drmmode_bo_get_pitch(drmmode_bo *bo);
327327
uint32_t drmmode_bo_get_handle(drmmode_bo *bo);
328328
Bool drmmode_glamor_handle_new_screen_pixmap(drmmode_ptr drmmode);

0 commit comments

Comments
 (0)