diff options
author | Emil Velikov <[email protected]> | 2015-10-14 18:11:11 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-11-21 12:52:20 +0000 |
commit | 7999e6ddba38016964cbc33b98b4658e900bcd3c (patch) | |
tree | f49f1e27062d898a45e7e61de0107d2c1a2ae8ee /src/gallium | |
parent | 17d3a5f8579cf103ffd7002052c700ffe9819152 (diff) |
pipe-loader: don't mix code and variable declarations
We cannot use this C99 feature here quite yet, as the code needs to be
build with MSVC prior to 2013.
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c index e7804d34e79..b5dfc56f49d 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c @@ -238,8 +238,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; |