diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-07-31 11:45:07 -0400 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2018-08-06 05:21:15 -0400 |
commit | 4e54acb2022099e41231271b5a8ec58ca8ac2d86 (patch) | |
tree | 07e0a971ae9a4ed39a9c8689cd529962ad99cfe4 /net/ieee802154 | |
parent | f9c52831133050c6b82aa8b6831c92da2bbf2a0b (diff) |
net: ieee802154: 6lowpan: remove redundant pointers 'fq' and 'net'
Pointers fq and net are being assigned but are never used hence they
are redundant and can be removed.
Cleans up clang warnings:
warning: variable 'fq' set but not used [-Wunused-but-set-variable]
warning: variable 'net' set but not used [-Wunused-but-set-variable]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/6lowpan/reassembly.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/ieee802154/6lowpan/reassembly.c b/net/ieee802154/6lowpan/reassembly.c index ec7a5da56129..e7857a8ac86d 100644 --- a/net/ieee802154/6lowpan/reassembly.c +++ b/net/ieee802154/6lowpan/reassembly.c | |||
@@ -40,9 +40,6 @@ static int lowpan_frag_reasm(struct lowpan_frag_queue *fq, | |||
40 | static void lowpan_frag_init(struct inet_frag_queue *q, const void *a) | 40 | static void lowpan_frag_init(struct inet_frag_queue *q, const void *a) |
41 | { | 41 | { |
42 | const struct frag_lowpan_compare_key *key = a; | 42 | const struct frag_lowpan_compare_key *key = a; |
43 | struct lowpan_frag_queue *fq; | ||
44 | |||
45 | fq = container_of(q, struct lowpan_frag_queue, q); | ||
46 | 43 | ||
47 | BUILD_BUG_ON(sizeof(*key) > sizeof(q->key)); | 44 | BUILD_BUG_ON(sizeof(*key) > sizeof(q->key)); |
48 | memcpy(&q->key, key, sizeof(*key)); | 45 | memcpy(&q->key, key, sizeof(*key)); |
@@ -52,10 +49,8 @@ static void lowpan_frag_expire(struct timer_list *t) | |||
52 | { | 49 | { |
53 | struct inet_frag_queue *frag = from_timer(frag, t, timer); | 50 | struct inet_frag_queue *frag = from_timer(frag, t, timer); |
54 | struct frag_queue *fq; | 51 | struct frag_queue *fq; |
55 | struct net *net; | ||
56 | 52 | ||
57 | fq = container_of(frag, struct frag_queue, q); | 53 | fq = container_of(frag, struct frag_queue, q); |
58 | net = container_of(fq->q.net, struct net, ieee802154_lowpan.frags); | ||
59 | 54 | ||
60 | spin_lock(&fq->q.lock); | 55 | spin_lock(&fq->q.lock); |
61 | 56 | ||