Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1298420 > unrolled thread
| Started by | kbuild test robot <lkp@intel.com> |
|---|---|
| First post | 2015-12-28 03:50 +0100 |
| Last post | 2015-12-28 03:50 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH] Input: fix err_cast.cocci warnings kbuild test robot <lkp@intel.com> - 2015-12-28 03:50 +0100
| From | kbuild test robot <lkp@intel.com> |
|---|---|
| Date | 2015-12-28 03:50 +0100 |
| Subject | [PATCH] Input: fix err_cast.cocci warnings |
| Message-ID | <qKw2Q-3Io-217@gated-at.bofh.it> |
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@tomtom.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web