commit 475b525076043ca52b0fd546a68ba9c482617a71
parent dd1768c8ab0abea05c1a143a9e3eea279fec6d54
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Wed, 14 Feb 2018 16:19:38 +0100
Remove useless code (ref_put with no immediate effect).
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/senc_scene_analyze.c b/src/senc_scene_analyze.c
@@ -508,7 +508,7 @@ group_connex_components
OK(s3d_device_create(desc->scene->dev->logger, alloc, 0, &s3d));
OK(s3d_scene_create(s3d, &s3d_scn));
OK(s3d_shape_create_mesh(s3d, &s3d_shp));
-
+
/* Back to API type for ntris and nverts */
ASSERT(desc->scene->nutris < UINT_MAX);
ASSERT(desc->scene->nuverts < UINT_MAX);
@@ -654,11 +654,6 @@ group_connex_components
}
}
- if(s3d) S3D(device_ref_put(s3d));
- s3d = NULL;
- if(s3d_view) S3D(scene_view_ref_put(s3d_view));
- s3d_view = NULL;
-
/* Post-process links to group connex components */
printf("\n");
FOR_EACH(c, 0, cc_count) {