]> git.baikalelectronics.ru Git - kernel.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)
commitc98c64648cbcc2c9d807d95bec813f2f196749c4
treed5afa6afd251d6678b972fd3bc8e2cf79a56e2e4
parent8a2e0fb01189bf1a3a9bdf3782919e5f0ee729c8
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