Skip to contentSkip to conversation

treewide: fix wrong identation

PATCH New Rosen Penev 1 participant 1 message Apr 17, 2020 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 treewide: fix wrong identation

Found with clang-tidy's readability-misleading-indentation

---
 lib/libdvbv5/dvb-demux.c                  | 9 +++++----
 lib/libdvbv5/dvb-dev-local.c              | 2 +-
 utils/v4l2-compliance/v4l2-compliance.cpp | 3 ++-
 3 files changed, 8 insertions(+), 6 deletions(-)
lib/libdvbv5/dvb-demux.c +5 -4
index d3534293..ff710456 100644
@@ -178,15 +178,16 @@ int dvb_get_pmt_pid(int patfd, int sid)
 
 	while (!patread){
 		if (((count = read(patfd, buf, sizeof(buft))) < 0) && errno == EOVERFLOW)
-		count = read(patfd, buf, sizeof(buft));
+			count = read(patfd, buf, sizeof(buft));
+
 		if (count < 0) {
-		perror("read_sections: read error");
-		return -1;
+			perror("read_sections: read error");
+			return -1;
 		}
 
 		section_length = ((buf[1] & 0x0f) << 8) | buf[2];
 		if (count != section_length + 3)
-		continue;
+			continue;
 
 		buf += 8;
 		section_length -= 8;
lib/libdvbv5/dvb-dev-local.c +1 -1
index e98b967a..fa185cda 100644
@@ -748,7 +748,7 @@ static int dvb_local_dmx_get_pmt_pid(struct dvb_open_descriptor *open_dev, int s
 
 		section_length = ((buf[1] & 0x0f) << 8) | buf[2];
 		if (count != section_length + 3)
-		continue;
+			continue;
 
 		buf += 8;
 		section_length -= 8;
utils/v4l2-compliance/v4l2-compliance.cpp +2 -1
index ed152fce..3983a8a8 100644
@@ -428,7 +428,8 @@ static void restoreState()
 	if (node->has_outputs) {
 		node->s_output(state.output.index);
 		if (state.output.audioset)
-		node->s_audout(state.aoutput.index);
+			node->s_audout(state.aoutput.index);
+
 		if (node->g_caps() & V4L2_CAP_MODULATOR) {
 			node->s_modulator(state.modulator);
 			node->s_frequency(state.freq);
Signature · 1 line
2.25.2