summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorMadalin Bucur <madalin.bucur@nxp.com>2016-07-07 12:25:24 (GMT)
committerMadalin Bucur <madalin.bucur@nxp.com>2016-10-04 06:26:10 (GMT)
commit73912d51d6c80096e95d29118b48c53393890bf2 (patch)
tree1a1d270d584b0bd5701dfdb2c0fb47c1470e2cca /drivers/net
parent604104fc549a32ae928435a48de6761af13836ea (diff)
downloadlinux-73912d51d6c80096e95d29118b48c53393890bf2.tar.xz
fsl/fman: simplify redundant condition
Change suggested by David Binderman, thanks. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/freescale/fman/fman.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/fman/fman.c b/drivers/net/ethernet/freescale/fman/fman.c
index 2278bbd..1fc1049 100644
--- a/drivers/net/ethernet/freescale/fman/fman.c
+++ b/drivers/net/ethernet/freescale/fman/fman.c
@@ -2331,8 +2331,7 @@ int fman_set_mac_max_frame(struct fman *fman, u8 mac_id, u16 mfl)
* or equal to the port's max
*/
if ((!fman->state->port_mfl[mac_id]) ||
- (fman->state->port_mfl[mac_id] &&
- (mfl <= fman->state->port_mfl[mac_id]))) {
+ (mfl <= fman->state->port_mfl[mac_id])) {
fman->state->mac_mfl[mac_id] = mfl;
} else {
dev_warn(fman->dev, "%s: MAC max_frame_length is larger than Port max_frame_length\n",