[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151227173314.GA10916@lkp-hsx03>
Date: Mon, 28 Dec 2015 01:33:15 +0800
From: kbuild test robot <lkp@...el.com>
To: Oreste Salerno <oreste.salerno@...tom.com>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
linux-input@...r.kernel.org, fery@...ress.com,
dmitry.torokhov@...il.com, robh+dt@...nel.org, pawel.moll@....com,
mark.rutland@....com, ijc+devicetree@...lion.org.uk,
galak@...eaurora.org, oreste.salerno@...tom.com
Subject: [PATCH] Input: fix err_cast.cocci warnings
drivers/input/touchscreen/cyttsp_core.c:637:9-16: WARNING: ERR_CAST can be used with pdata
Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
Generated by: scripts/coccinelle/api/err_cast.cocci
CC: Oreste Salerno <oreste.salerno@...tom.com>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---
cyttsp_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/input/touchscreen/cyttsp_core.c
+++ b/drivers/input/touchscreen/cyttsp_core.c
@@ -634,7 +634,7 @@ struct cyttsp *cyttsp_probe(const struct
pdata = cyttsp_get_platform_data(dev);
if (IS_ERR(pdata))
- return ERR_PTR(PTR_ERR(pdata));
+ return ERR_CAST(pdata);
ts = kzalloc(sizeof(*ts) + xfer_buf_size, GFP_KERNEL);
input_dev = input_allocate_device();
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists