mutex_unlock(&priv->mdev->state_lock);
 }
 
-static int mlx4_en_get_profile(struct mlx4_en_dev *mdev)
+static void mlx4_en_get_profile(struct mlx4_en_dev *mdev)
 {
        struct mlx4_en_profile *params = &mdev->profile;
        int i;
                params->prof[i].rss_rings = 0;
                params->prof[i].inline_thold = inline_thold;
        }
-
-       return 0;
 }
 
 static void *mlx4_en_get_netdev(struct mlx4_dev *dev, void *ctx, u8 port)
        }
 
        /* Build device profile according to supplied module parameters */
-       if (mlx4_en_get_profile(mdev)) {
-               mlx4_err(mdev, "Bad module parameters, aborting\n");
-               goto err_mr;
-       }
+       mlx4_en_get_profile(mdev);
 
        /* Configure which ports to start according to module parameters */
        mdev->port_cnt = 0;