Skip to content

Commit be689c7

Browse files
q2vendavem330
authored andcommitted
6lowpan: Remove redundant initialisation.
We'll call memset(&tmp, 0, sizeof(tmp)) later. Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8cdc322 commit be689c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/6lowpan/iphc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ static u8 lowpan_compress_ctx_addr(u8 **hc_ptr, const struct net_device *dev,
848848
const struct lowpan_iphc_ctx *ctx,
849849
const unsigned char *lladdr, bool sam)
850850
{
851-
struct in6_addr tmp = {};
851+
struct in6_addr tmp;
852852
u8 dam;
853853

854854
switch (lowpan_dev(dev)->lltype) {

0 commit comments

Comments
 (0)