projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cdc322
)
6lowpan: Remove redundant initialisation.
author
Kuniyuki Iwashima
<kuniyu@amazon.com>
Mon, 27 Mar 2023 23:54:55 +0000
(16:54 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 29 Mar 2023 07:22:52 +0000
(08:22 +0100)
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>
net/6lowpan/iphc.c
patch
|
blob
|
history
diff --git
a/net/6lowpan/iphc.c
b/net/6lowpan/iphc.c
index 52fad5dad9f71599ac8130ebe0efb560b6600945..e116d308a8df6d055989fc83a9589dd26f75b471 100644
(file)
--- 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) {