summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwetha Chikkaboraiah <schikk@codeaurora.org>2020-06-02 19:50:09 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2020-06-08 03:49:34 -0700
commit4824ab2e94ae1799db97f62b461c41b35e1348f2 (patch)
tree7cf4f813f5c773a482bc4b2b27d8461fc10cabc5
parent9fdd00c86e4532613dee1f730ee7af31e9775210 (diff)
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: Swetha Chikkaboraiah <schikk@codeaurora.org>
-rw-r--r--drivers/input/touchscreen/atmel_maxtouch_ts.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/input/touchscreen/atmel_maxtouch_ts.c b/drivers/input/touchscreen/atmel_maxtouch_ts.c
index 423a055bbec6..d07ca3dc7e46 100644
--- a/drivers/input/touchscreen/atmel_maxtouch_ts.c
+++ b/drivers/input/touchscreen/atmel_maxtouch_ts.c
@@ -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",