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

Commit c13c86eb authored by Anant Goel's avatar Anant Goel Committed by Gerrit - the friendly Code Review server
Browse files

qcom-geni-se: Don't ignore the return value



Save the returned value from sysfs_create_file in geni_se_probe
and returns an error accordingly.

Change-Id: I7dee3d73d529f79f30c0c579f9f873781ddce44e
Signed-off-by: default avatarAnant Goel <anantg@codeaurora.org>
parent 7aeef01a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1986,8 +1986,10 @@ static int geni_se_probe(struct platform_device *pdev)
			return ret;
		}

		sysfs_create_file(&geni_se_dev->dev->kobj,
		ret = sysfs_create_file(&geni_se_dev->dev->kobj,
			 &dev_attr_ssc_qup_state.attr);
		if (ret)
			dev_err(dev, "Unable to create sysfs file\n");
	}

	GENI_SE_DBG(geni_se_dev->log_ctx, false, NULL,