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

Commit 4824ab2e authored by Swetha Chikkaboraiah's avatar Swetha Chikkaboraiah Committed by Gerrit - the friendly Code Review server
Browse files

msm: Fix compilation error



Fix the below error with clang
warning: address of array 'data->cfg_name' will
always evaluate to 'true' [-Wpointer-bool-conversion].

Change-Id: I9a28d1a6a315ccbb93a17c247381c5ec56c92806
Signed-off-by: default avatarSwetha Chikkaboraiah <schikk@codeaurora.org>
parent 9fdd00c8
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1861,11 +1861,6 @@ static int mxt_load_cfg(struct mxt_data *data, bool force)
	int ver[3];
	u16 reg;

	if (!data->cfg_name) {
		dev_dbg(dev, "Skipping cfg download\n");
		goto report_enable;
	}

	ret = request_firmware(&cfg, data->cfg_name, dev);
	if (ret < 0) {
		dev_err(dev, "Failure to request config file %s\n",