From fa7beaad1fa211c5654a17cc1b7cf0e63acc52b9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 4 Aug 2016 23:10:24 -0400 Subject: tvi_v4l2: explicitly brace the code It's fine either way, but this code is weirdly formatted. Make it more explicit. --- stream/tvi_v4l2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stream/tvi_v4l2.c b/stream/tvi_v4l2.c index 91c810ad23..1f3ba45895 100644 --- a/stream/tvi_v4l2.c +++ b/stream/tvi_v4l2.c @@ -1005,7 +1005,10 @@ static int uninit(priv_t *priv) /* free memory and close device */ free(priv->map); priv->map = NULL; priv->mapcount = 0; - if(priv->video_fd!=-1)v4l2_close(priv->video_fd); priv->video_fd = -1; + if(priv->video_fd!=-1) { + v4l2_close(priv->video_fd); + priv->video_fd = -1; + } free(priv->video_dev); priv->video_dev = NULL; if (priv->video_ringbuffer) { -- cgit v1.2.3