]> asedeno.scripts.mit.edu Git - linux.git/commit
mkiss: remove redundant check for len > 0
authorColin Ian King <colin.king@canonical.com>
Wed, 25 Apr 2018 10:43:07 +0000 (11:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Apr 2018 18:12:06 +0000 (14:12 -0400)
commit6f5d295909c9e10a715c4f9f6301ffa701398112
treed5afa6afd251d6678b972fd3bc8e2cf79a56e2e4
parent4d7b44833e9a129d3220152727a19cceea3a2ac4
mkiss: remove redundant check for len > 0

The check for len > 0 is always true and hence is redundant as
this check is already being made to execute the code inside the
while-loop. Hence it is redundant and can be removed.

Cleans up cppcheck warning:
drivers/net/hamradio/mkiss.c:220: (warning) Identical inner 'if'
condition is always true.

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