Skip to content

Commit 516239c

Browse files
stefan11111metux
authored andcommitted
modesetting: Fix -Wunused-variable warnings
Signed-off-by: stefan11111 <[email protected]>
1 parent 1c706ef commit 516239c

File tree

1 file changed

+0
-8
lines changed
  • hw/xfree86/drivers/video/modesetting

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,6 @@ msSetWindowVRRMode(WindowPtr window, WindowVRRMode mode)
933933
Bool
934934
ms_window_has_async_flip(WindowPtr win)
935935
{
936-
ScrnInfoPtr scrn = xf86ScreenToScrn(win->drawable.pScreen);
937-
modesettingPtr ms = modesettingPTR(scrn);
938936
struct ms_async_flip_priv *priv = dixLookupPrivate(&win->devPrivates,
939937
&asyncFlipPrivateKeyRec);
940938

@@ -944,8 +942,6 @@ ms_window_has_async_flip(WindowPtr win)
944942
void
945943
ms_window_update_async_flip(WindowPtr win, Bool async_flip)
946944
{
947-
ScrnInfoPtr scrn = xf86ScreenToScrn(win->drawable.pScreen);
948-
modesettingPtr ms = modesettingPTR(scrn);
949945
struct ms_async_flip_priv *priv = dixLookupPrivate(&win->devPrivates,
950946
&asyncFlipPrivateKeyRec);
951947

@@ -955,8 +951,6 @@ ms_window_update_async_flip(WindowPtr win, Bool async_flip)
955951
Bool
956952
ms_window_has_async_flip_modifiers(WindowPtr win)
957953
{
958-
ScrnInfoPtr scrn = xf86ScreenToScrn(win->drawable.pScreen);
959-
modesettingPtr ms = modesettingPTR(scrn);
960954
struct ms_async_flip_priv *priv = dixLookupPrivate(&win->devPrivates,
961955
&asyncFlipPrivateKeyRec);
962956

@@ -966,8 +960,6 @@ ms_window_has_async_flip_modifiers(WindowPtr win)
966960
void
967961
ms_window_update_async_flip_modifiers(WindowPtr win, Bool async_flip)
968962
{
969-
ScrnInfoPtr scrn = xf86ScreenToScrn(win->drawable.pScreen);
970-
modesettingPtr ms = modesettingPTR(scrn);
971963
struct ms_async_flip_priv *priv = dixLookupPrivate(&win->devPrivates,
972964
&asyncFlipPrivateKeyRec);
973965

0 commit comments

Comments
 (0)