From: Kuniyuki Iwashima Date: Mon, 27 Mar 2023 23:54:55 +0000 (-0700) Subject: 6lowpan: Remove redundant initialisation. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=be689c719eb6153b0fbd83536ae656dca8981f12;p=linux.git 6lowpan: Remove redundant initialisation. We'll call memset(&tmp, 0, sizeof(tmp)) later. Signed-off-by: Kuniyuki Iwashima Signed-off-by: David S. Miller --- diff --git a/net/6lowpan/iphc.c b/net/6lowpan/iphc.c index 52fad5dad9f71..e116d308a8df6 100644 --- a/net/6lowpan/iphc.c +++ b/net/6lowpan/iphc.c @@ -848,7 +848,7 @@ static u8 lowpan_compress_ctx_addr(u8 **hc_ptr, const struct net_device *dev, const struct lowpan_iphc_ctx *ctx, const unsigned char *lladdr, bool sam) { - struct in6_addr tmp = {}; + struct in6_addr tmp; u8 dam; switch (lowpan_dev(dev)->lltype) {