aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-follower
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-04-17 14:15:24 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-04-20 14:40:14 +0200
commitce8ed12c95eeb628febfff04abe9fae4d6f410bf (patch)
tree698d0ccf0dbbc229d1410b2842c5b30ae6ef421a /utils/cec-follower
parent06dc2b0c0e9705d5d4607c89dfc7decf714a68d6 (diff)
treewide: do not use return after else
Found with clang-tidy's readability-else-after-return Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil-cisco@xs4all.nl: split '} if () {' into two lines] [hverkuil-cisco@xs4all.nl: split 'if () continue; else return -1;' into two lines]
Diffstat (limited to 'utils/cec-follower')
-rw-r--r--utils/cec-follower/cec-follower.cpp2
-rw-r--r--utils/cec-follower/cec-processing.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/cec-follower/cec-follower.cpp b/utils/cec-follower/cec-follower.cpp
index c9cd18d1..6ccd2ae2 100644
--- a/utils/cec-follower/cec-follower.cpp
+++ b/utils/cec-follower/cec-follower.cpp
@@ -227,7 +227,7 @@ std::string audio_format_id_code2s(__u8 audio_format_id, __u8 audio_format_code)
{
if (audio_format_id == 0)
return audio_format_code2s(audio_format_code);
- else if (audio_format_id == 1)
+ if (audio_format_id == 1)
return extension_type_code2s(audio_format_code);
return "Invalid";
}
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index 373519fc..511b3ba7 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -692,8 +692,8 @@ static void processMsg(struct node *node, struct cec_msg &msg, unsigned me)
signalize that we support SAC. */
if (cec_has_tv(1 << me))
return;
- else
- break;
+
+ break;
}
cec_ops_set_system_audio_mode(&msg, &system_audio_status);
if (system_audio_status == CEC_OP_SYS_AUD_STATUS_ON)

Privacy Policy