[Mesa-dev] [PATCH 26/40] pipe-loader: don't mix code and variable declarations
Emil Velikov
emil.l.velikov at gmail.com
Sat Oct 17 15:58:00 PDT 2015
We cannot use this C99 feature here quite yet, as the code needs to be
ok with MSVC prior to 2013.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
index 97e9dcb..a3fa7cf 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
@@ -232,8 +232,9 @@ pipe_loader_drm_probe(struct pipe_loader_device **devs, int ndev)
for (i = DRM_RENDER_NODE_MIN_MINOR, j = 0;
i <= DRM_RENDER_NODE_MAX_MINOR; i++) {
- fd = open_drm_render_node_minor(i);
struct pipe_loader_device *dev;
+
+ fd = open_drm_render_node_minor(i);
if (fd < 0)
continue;
--
2.6.1
More information about the mesa-dev
mailing list