summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2019-09-28 16:57:14 -0700
committerMichael Bestas <mkbestas@lineageos.org>2020-02-02 01:41:06 +0200
commit0a28a7bab8ce6ade9eb67c203251a737a6bcc5d8 (patch)
tree8b802e69ee80d2449438a218d12692c4750e39fe /drivers/input/touchscreen
parent82d659482586d39a96528d28f7560505189604f0 (diff)
input: atmel_maxtouch_ts: Remove pointless NULL check in mxt_load_cfg
Clang warns: ../drivers/input/touchscreen/atmel_maxtouch_ts.c:1864:13: warning: address of array 'data->cfg_name' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!data->cfg_name) { ~~~~~~~^~~~~~~~ 1 warning generated. Fixes: ea2cf49df906 ("input: atmel_maxtouch_ts: Add latest Atmel driver support") Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen')
-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",