Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Stefan Schmidt
4e54acb2 f9c52831

-5
-5
net/ieee802154/6lowpan/reassembly.c
··· 40 40 static void lowpan_frag_init(struct inet_frag_queue *q, const void *a) 41 41 { 42 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 44 BUILD_BUG_ON(sizeof(*key) > sizeof(q->key)); 48 45 memcpy(&q->key, key, sizeof(*key)); ··· 49 52 { 50 53 struct inet_frag_queue *frag = from_timer(frag, t, timer); 51 54 struct frag_queue *fq; 52 - struct net *net; 53 55 54 56 fq = container_of(frag, struct frag_queue, q); 55 - net = container_of(fq->q.net, struct net, ieee802154_lowpan.frags); 56 57 57 58 spin_lock(&fq->q.lock); 58 59