commit | 080aaddae5b378ebb0f06d297bf05cf4ec5b47ac | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Tue Apr 24 12:39:45 2018 +0100 |
committer | David S. Miller <davem@davemloft.net> | Tue Apr 24 16:00:37 2018 -0400 |
tree | aef5d6fe657e125ce86d6ea2b9b53f994c06febf | |
parent | c7d852e301d834949e570920db808201bdc51a22 [diff] |
fsl/fman_port: remove redundant check on port->rev_info.major The check port->rev_info.major >= 6 is being performed twice, thus the inner second check is always true and is redundant, hence it can be removed. Detected by cppcheck. drivers/net/ethernet/freescale/fman/fman_port.c:1394]: (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>