diff mbox

[libdrm] xf86drmMode: merge successive mutually-exclusive #ifs

Message ID 20180322171145.17742-1-eric.engestrom@imgtec.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Engestrom March 22, 2018, 5:11 p.m. UTC
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 xf86drmMode.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Frank Binns March 22, 2018, 5:18 p.m. UTC | #1
Reviewed-by: Frank Binns <frank.binns@imgtec.com>

Eric Engestrom <eric.engestrom@imgtec.com> writes:

> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
> ---
>  xf86drmMode.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/xf86drmMode.c b/xf86drmMode.c
> index e010547602c6f38ba5a0..6111f477ba0ee25c1f05 100644
> --- a/xf86drmMode.c
> +++ b/xf86drmMode.c
> @@ -829,8 +829,7 @@ int drmCheckModesettingSupported(const char *busid)
>  	}
>  #elif defined(__DragonFly__)
>  	return 0;
> -#endif
> -#ifdef __OpenBSD__
> +#elif defined(__OpenBSD__)
>  	int	fd;
>  	struct drm_mode_card_res res;
>  	drmModeResPtr r = 0;
Frank Binns March 22, 2018, 5:22 p.m. UTC | #2
Reviewed-by: Frank Binns <frank.binns@imgtec.com>

Eric Engestrom <eric.engestrom@imgtec.com> writes:

> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
> ---
>  xf86drmMode.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/xf86drmMode.c b/xf86drmMode.c
> index e010547602c6f38ba5a0..6111f477ba0ee25c1f05 100644
> --- a/xf86drmMode.c
> +++ b/xf86drmMode.c
> @@ -829,8 +829,7 @@ int drmCheckModesettingSupported(const char *busid)
>  	}
>  #elif defined(__DragonFly__)
>  	return 0;
> -#endif
> -#ifdef __OpenBSD__
> +#elif defined(__OpenBSD__)
>  	int	fd;
>  	struct drm_mode_card_res res;
>  	drmModeResPtr r = 0;
Emil Velikov March 22, 2018, 6:03 p.m. UTC | #3
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>

-Emil
diff mbox

Patch

diff --git a/xf86drmMode.c b/xf86drmMode.c
index e010547602c6f38ba5a0..6111f477ba0ee25c1f05 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -829,8 +829,7 @@  int drmCheckModesettingSupported(const char *busid)
 	}
 #elif defined(__DragonFly__)
 	return 0;
-#endif
-#ifdef __OpenBSD__
+#elif defined(__OpenBSD__)
 	int	fd;
 	struct drm_mode_card_res res;
 	drmModeResPtr r = 0;