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

Commit 2e621fdf authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Use proper return code for not supported operation



ENOTSUPP is not a SUSV4 error code, use EOPNOTSUPP instead.

Change-Id: I8755486cb47880e52182370ed6939f655424c7d5
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 63c72bd4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -328,7 +328,7 @@ int cnss_set_pcie_gen_speed(struct device *dev, u8 pcie_gen_speed)

	if (plat_priv->device_id != QCA6490_DEVICE_ID ||
	    !plat_priv->fw_pcie_gen_switch)
		return -ENOTSUPP;
		return -EOPNOTSUPP;

	if (pcie_gen_speed < QMI_PCIE_GEN_SPEED_1_V01 ||
	    pcie_gen_speed > QMI_PCIE_GEN_SPEED_3_V01)
+1 −1
Original line number Diff line number Diff line
@@ -528,7 +528,7 @@ static int cnss_setup_bus_bandwidth(struct cnss_plat_data *plat_priv,
	struct cnss_bus_bw_info *bus_bw_info;

	if (!plat_priv->icc.path_count)
		return -ENOTSUPP;
		return -EOPNOTSUPP;

	if (bw >= plat_priv->icc.bus_bw_cfg_count) {
		cnss_pr_err("Invalid bus bandwidth Type: %d", bw);