Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73912d51 authored by Madalin Bucur's avatar Madalin Bucur
Browse files

fsl/fman: simplify redundant condition



Change suggested by David Binderman, thanks.

Signed-off-by: default avatarMadalin Bucur <madalin.bucur@nxp.com>
parent 604104fc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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",