LOCAL / input: touchscreen: fix semicolon.cocci warnings
diff mbox

Message ID alpine.DEB.2.20.1703061436160.3078@hadrien
State Under Review
Headers show

Commit Message

Julia Lawall March 6, 2017, 1:38 p.m. UTC
Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

CC: Beomho Seo <beomho.seo@samsung.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>

I also received the following warning from kbuild, without any other

drivers/input/touchscreen/fts_ts.c:750:1-6: WARNING: invalid free of devm_
allocated data

head:   41f00580dc0f947b7788a1b5f57f793dea49ee9a
commit: 15a1244b5349543dfc629b1eda799f0008dbd8bd [7/38] LOCAL / input:
touchscreen: Add FTS_TS touchsreen driver

 fts_ts.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

diff mbox

--- a/drivers/input/touchscreen/fts_ts.c
+++ b/drivers/input/touchscreen/fts_ts.c
@@ -558,12 +558,12 @@  static struct fts_i2c_platform_data *fts
 	if (of_property_read_u32(np, "x-size", &pdata->max_x)) {
 		dev_err(dev, "failed to get x-size property\n");
 		return NULL;
-	};
+	}

 	if (of_property_read_u32(np, "y-size", &pdata->max_y)) {
 		dev_err(dev, "failed to get y-size property\n");
 		return NULL;
-	};
+	}

 	pdata->keys_en = of_property_read_bool(np, "touch-key-connected");