* [PATCH] Staging: nvec: removes useless cast on a void pointer.
@ 2016-03-13 18:14 Ben Marsh
[not found] ` <20160313181435.GA12242-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Ben Marsh @ 2016-03-13 18:14 UTC (permalink / raw)
To: gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r
Cc: marvin24-Mmb7MZpHnFY, ac100-oU9gvf+ajcSyy5GWsZ7R2qxOck334EZe,
linux-tegra-u79uwXL29TY76Z2rM5mHXA,
devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b
Patch to nvec.c to remove a useless cast on a void pointer.
Signed-off-by: Ben Marsh <bmarsh94-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
drivers/staging/nvec/nvec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c
index c335ae2..52d1363 100644
--- a/drivers/staging/nvec/nvec.c
+++ b/drivers/staging/nvec/nvec.c
@@ -141,7 +141,7 @@ static int nvec_status_notifier(struct notifier_block *nb,
{
struct nvec_chip *nvec = container_of(nb, struct nvec_chip,
nvec_status_notifier);
- unsigned char *msg = (unsigned char *)data;
+ unsigned char *msg = data;
if (event_type != NVEC_CNTL)
return NOTIFY_DONE;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Staging: nvec: removes useless cast on a void pointer.
[not found] ` <20160313181435.GA12242-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
@ 2016-03-21 19:41 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2016-03-21 19:41 UTC (permalink / raw)
To: Ben Marsh
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
ac100-oU9gvf+ajcSyy5GWsZ7R2qxOck334EZe,
devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b
On Sun, Mar 13, 2016 at 07:14:38PM +0100, Ben Marsh wrote:
> Patch to nvec.c to remove a useless cast on a void pointer.
>
> Signed-off-by: Ben Marsh <bmarsh94-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> ---
> drivers/staging/nvec/nvec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Someone sent this before you did :(
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-21 19:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-13 18:14 [PATCH] Staging: nvec: removes useless cast on a void pointer Ben Marsh
[not found] ` <20160313181435.GA12242-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2016-03-21 19:41 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox