aboutsummaryrefslogtreecommitdiffstats
path: root/edid-decode.cpp
diff options
context:
space:
mode:
authorjoevt <joevt@shaw.ca>2021-09-26 01:33:02 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-09-27 10:13:22 +0200
commitcb4352e4d837095c16b992bd92bbda42e05a3422 (patch)
treee2e4400babd9005d6aa3d43baea7f1c681f704d0 /edid-decode.cpp
parent8f71c25c7a09d6d9ed851c2beb06a326d6bde90a (diff)
edid-decode: remove unnecessary length check
The for loop also checks the length. Nothing will happen if length is zero as expected. Signed-off-by: Joe van Tunen <joevt@shaw.ca> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'edid-decode.cpp')
-rw-r--r--edid-decode.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/edid-decode.cpp b/edid-decode.cpp
index d5062dd..d77646d 100644
--- a/edid-decode.cpp
+++ b/edid-decode.cpp
@@ -700,9 +700,6 @@ void hex_block(const char *prefix, const unsigned char *x,
{
unsigned i, j;
- if (!length)
- return;
-
for (i = 0; i < length; i += step) {
unsigned len = min(step, length - i);

Privacy Policy