[PATCH] treewide: fix wrong identation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---
 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(-)

diff --git a/lib/libdvbv5/dvb-demux.c b/lib/libdvbv5/dvb-demux.c
index d3534293..ff710456 100644
--- a/lib/libdvbv5/dvb-demux.c
+++ b/lib/libdvbv5/dvb-demux.c
@@ -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;
diff --git a/lib/libdvbv5/dvb-dev-local.c b/lib/libdvbv5/dvb-dev-local.c
index e98b967a..fa185cda 100644
--- a/lib/libdvbv5/dvb-dev-local.c
+++ b/lib/libdvbv5/dvb-dev-local.c
@@ -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;
diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp
index ed152fce..3983a8a8 100644
--- a/utils/v4l2-compliance/v4l2-compliance.cpp
+++ b/utils/v4l2-compliance/v4l2-compliance.cpp
@@ -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);
-- 
2.25.2




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux