]> git.baikalelectronics.ru Git - kernel.git/commit
dns: remove redundant zero length namelen check
authorColin Ian King <colin.king@canonical.com>
Tue, 9 Apr 2019 12:59:12 +0000 (13:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 21:01:08 +0000 (14:01 -0700)
commit84151c35202646066cd58de5e4ce2af50b449766
tree9ec15b15145412a4bc1f2f80fc32be2ab73db50d
parent5ba2dde542ff5b1498d9eb15991925d96c2fc546
dns: remove redundant zero length namelen check

The zero namelen check is redundant as it has already been checked
for zero at the start of the function.  Remove the redundant check.

Addresses-Coverity: ("Logically Dead Code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dns_resolver/dns_query.c