net: caif: remove redundant null check on frontpkt
authorColin Ian King <colin.king@canonical.com>
Fri, 14 Sep 2018 17:19:16 +0000 (18:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Sep 2018 01:49:57 +0000 (18:49 -0700)
commit5d288b88655d5bea0cf3a42158cb3bf7916587bc
tree8339f4e4b9dd73af3803fcdcab971096320dc62a
parentce5b127b172eac8adc5cb386dc19cf58acf5536c
net: caif: remove redundant null check on frontpkt

It is impossible for frontpkt to be null at the point of the null
check because it has been assigned from rearpkt and there is no
way rearpkt can be null at the point of the assignment because
of the sanity checking and exit paths taken previously. Remove
the redundant null check.

Detected by CoverityScan, CID#114434 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/cfrfml.c