mkiss: remove redundant check on len being zero
authorColin Ian King <colin.king@canonical.com>
Wed, 27 Sep 2017 21:45:13 +0000 (22:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Sep 2017 04:44:28 +0000 (05:44 +0100)
commit45c1fd61d5cead2ae23880e0677b8660ab9006a4
tree9b0fd96152efab085b45b9919bf49ddfb073a239
parent84e14fe353de7624872e582887712079ba0b2d56
mkiss: remove redundant check on len being zero

The check on len is redundant as it is always greater than 1,
so just remove it and make the printk less complex.

Detected by CoverityScan, CID#1226729 ("Logically dead code")

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