staging: fsl-dpaa2/eth: Remove incorrect error path
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Tue, 6 Jun 2017 15:00:27 +0000 (10:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 10:02:54 +0000 (12:02 +0200)
Not having Rx hashing distribution enabled for an
interface is a valid configuration and shouldn't be
treated as an error.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c

index a9e245df2488dd0572ac90d2de43d655f35e4785..f63054e071b38e2f62f6438cca46175a5f7180c4 100644 (file)
@@ -1969,8 +1969,8 @@ static int dpaa2_eth_set_hash(struct net_device *net_dev, u64 flags)
        int err = 0;
 
        if (!dpaa2_eth_hash_enabled(priv)) {
-               dev_err(dev, "Hashing support is not enabled\n");
-               return -EOPNOTSUPP;
+               dev_dbg(dev, "Hashing support is not enabled\n");
+               return 0;
        }
 
        memset(&cls_cfg, 0, sizeof(cls_cfg));