提交 73912d51 编写于 作者: M Madalin Bucur

fsl/fman: simplify redundant condition

Change suggested by David Binderman, thanks.
Signed-off-by: NMadalin Bucur <madalin.bucur@nxp.com>
上级 604104fc
...@@ -2331,8 +2331,7 @@ int fman_set_mac_max_frame(struct fman *fman, u8 mac_id, u16 mfl) ...@@ -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 * or equal to the port's max
*/ */
if ((!fman->state->port_mfl[mac_id]) || 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; fman->state->mac_mfl[mac_id] = mfl;
} else { } else {
dev_warn(fman->dev, "%s: MAC max_frame_length is larger than Port max_frame_length\n", dev_warn(fman->dev, "%s: MAC max_frame_length is larger than Port max_frame_length\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册