Skip to content

Commit 4e54acb

Browse files
Colin Ian KingStefan-Schmidt
authored andcommitted
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>
1 parent f9c5283 commit 4e54acb

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎net/ieee802154/6lowpan/reassembly.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ static int lowpan_frag_reasm(struct lowpan_frag_queue *fq,
4040
static void lowpan_frag_init(struct inet_frag_queue *q, const void *a)
4141
{
4242
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);
4643

4744
BUILD_BUG_ON(sizeof(*key) > sizeof(q->key));
4845
memcpy(&q->key, key, sizeof(*key));
@@ -52,10 +49,8 @@ static void lowpan_frag_expire(struct timer_list *t)
5249
{
5350
struct inet_frag_queue *frag = from_timer(frag, t, timer);
5451
struct frag_queue *fq;
55-
struct net *net;
5652

5753
fq = container_of(frag, struct frag_queue, q);
58-
net = container_of(fq->q.net, struct net, ieee802154_lowpan.frags);
5954

6055
spin_lock(&fq->q.lock);
6156

0 commit comments

Comments
 (0)