]> 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)
commit6f712c9cfe394bf0a7d8298698c9dd72a7eb2122
tree8339f4e4b9dd73af3803fcdcab971096320dc62a
parent0b9bf91044a6ab5c48dc74e2a0af391ca1f7e22b
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