summaryrefslogtreecommitdiffstats
path: root/net/caif
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2021-12-28 00:45:42 +0000
committerDavid S. Miller <davem@davemloft.net>2021-12-28 12:52:24 +0000
commit0f1eae8e565e632f64670a5730894f22819fcaad (patch)
tree513018283b016437887623bc2bf5094c3442ff51 /net/caif
parentb4aadd207322d243c3ceef107c495117898a36f1 (diff)
downloadlinux-0f1eae8e565e632f64670a5730894f22819fcaad.tar.bz2
net: caif: remove redundant assignment to variable expectlen
Variable expectlen is being assigned a value that is never read, the assignment occurs before a return statement. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif')
-rw-r--r--net/caif/cfserl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/caif/cfserl.c b/net/caif/cfserl.c
index 40cd57ad0a0f..aee11c74d3c8 100644
--- a/net/caif/cfserl.c
+++ b/net/caif/cfserl.c
@@ -128,7 +128,6 @@ static int cfserl_receive(struct cflayer *l, struct cfpkt *newpkt)
if (pkt != NULL)
cfpkt_destroy(pkt);
layr->incomplete_frm = NULL;
- expectlen = 0;
spin_unlock(&layr->sync);
return -EPROTO;
}