aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-06-07 14:50:50 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-06-07 14:50:50 +0200
commit3a5c3a5c1b0eb756a2258aea87f3bacb89199064 (patch)
treeeac050eb9e130ef770388fcb9686b4db439bca21
parent40799264e140c20a65a65123ed0ab8980376ddd1 (diff)
downloadotp-3a5c3a5c1b0eb756a2258aea87f3bacb89199064.tar.gz
otp-3a5c3a5c1b0eb756a2258aea87f3bacb89199064.tar.bz2
otp-3a5c3a5c1b0eb756a2258aea87f3bacb89199064.zip
erts: Remove tautological compare warning
-rw-r--r--erts/emulator/beam/erl_bif_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_bif_port.c b/erts/emulator/beam/erl_bif_port.c
index 37f4e1de49..fefa9d8391 100644
--- a/erts/emulator/beam/erl_bif_port.c
+++ b/erts/emulator/beam/erl_bif_port.c
@@ -1411,7 +1411,7 @@ BIF_RETTYPE decode_packet_3(BIF_ALIST_3)
trunc_len = val;
goto next_option;
case am_line_delimiter:
- if (type == TCP_PB_LINE_LF && val >= 0 && val <= 255) {
+ if (type == TCP_PB_LINE_LF && val <= 255) {
delimiter = (char)val;
goto next_option;
}