]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a0993c1c7f8a2ebc9d582999c678069fa38de1d
tree8339f4e4b9dd73af3803fcdcab971096320dc62a
parent97b572331744a5ed89c95acd26ca7b764570e59c
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