Skip to content

Commit 38b40f2

Browse files
finikorgcarlescufi
authored andcommitted
net: utils: Remove dead statement
Value stored to needcolon is overwritten later before loop ends. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent 2514204 commit 38b40f2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

subsys/net/ip/utils.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ char *z_impl_net_addr_ntop(sa_family_t family, const void *src,
234234

235235
if (needcolon) {
236236
*ptr++ = ':';
237-
needcolon = false;
238237
}
239238

240239
value = (uint32_t)sys_be16_to_cpu(UNALIGNED_GET(&w[i]));

0 commit comments

Comments
 (0)