From 3472d84e1742e6d36fca0d9124bb3f1803f5b5a4 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Thu, 23 Feb 2017 15:10:46 +0000 Subject: [PATCH] rtadvd(8): double assignment. Remove doubtful initialization since the value will be overwritten immediately afterwards. Found with: coccinelle (da.cocci) --- usr.sbin/rtadvd/config.c | 1 - 1 file changed, 1 deletion(-) diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c index db16e333febf..05d9dc5efb9a 100644 --- a/usr.sbin/rtadvd/config.c +++ b/usr.sbin/rtadvd/config.c @@ -1395,7 +1395,6 @@ make_packet(struct rainfo *rai) ra->nd_ra_code = 0; ra->nd_ra_cksum = 0; ra->nd_ra_curhoplimit = (uint8_t)(0xff & rai->rai_hoplimit); - ra->nd_ra_flags_reserved = 0; /* just in case */ /* * XXX: the router preference field, which is a 2-bit field, should be * initialized before other fields.