ethtool: remove unnecessary check in ethtool_get_regs()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 Feb 2019 08:24:06 +0000 (11:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2019 17:58:07 +0000 (09:58 -0800)
commitef76c77a0561e83d457937621ce2273b0580e345
tree9252d830ded234562c5d61477d0092410de54fd7
parentfa6821cbf1d9724284ef0906c9a01a5fbf13a35c
ethtool: remove unnecessary check in ethtool_get_regs()

We recently changed this function in commit f9fc54d313fa ("ethtool:
check the return value of get_regs_len") such that if "reglen" is zero
we return directly.  That means we can remove this condition as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c