diff options
author | Ioana Radulescu <ruxandra.radulescu@nxp.com> | 2018-07-12 12:12:29 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-13 11:37:34 +0200 |
commit | 81f34e96dc9f965e80497ffbc764bf931b91ac5f (patch) | |
tree | e46422a775f2942b04bc047cbda725a698f9c329 /drivers/staging/fsl-dpaa2 | |
parent | de9b58400a3ce6b9b6cc45f66c3f5e3d754becf1 (diff) |
staging: fsl-dpaa2/eth: Remove unnecessary cast
There's no need to explicitly cast DPAA2_ETH_MFL to u16,
so remove it.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-dpaa2')
-rw-r--r-- | drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index 4ae2371940bc..da993ed80ecf 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -2366,7 +2366,7 @@ static int netdev_init(struct net_device *net_dev) /* Set MTU upper limit; lower limit is 68B (default value) */ net_dev->max_mtu = DPAA2_ETH_MAX_MTU; err = dpni_set_max_frame_length(priv->mc_io, 0, priv->mc_token, - (u16)DPAA2_ETH_MFL); + DPAA2_ETH_MFL); if (err) { dev_err(dev, "dpni_set_max_frame_length() failed\n"); return err; |