* [PATCH v1] tools: hv: remove cast from hyperv_die_event
@ 2020-08-19 9:05 Olaf Hering
2020-08-19 11:30 ` Wei Liu
0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2020-08-19 9:05 UTC (permalink / raw)
To: linux-hyperv, linux-kernel
Cc: Olaf Hering, K. Y. Srinivasan, Haiyang Zhang, Stephen Hemminger, Wei Liu
No need to cast a void pointer.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
drivers/hv/vmbus_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
index 910b6e90866c..187809977360 100644
--- a/drivers/hv/vmbus_drv.c
+++ b/drivers/hv/vmbus_drv.c
@@ -83,7 +83,7 @@ static int hyperv_panic_event(struct notifier_block *nb, unsigned long val,
static int hyperv_die_event(struct notifier_block *nb, unsigned long val,
void *args)
{
- struct die_args *die = (struct die_args *)args;
+ struct die_args *die = args;
struct pt_regs *regs = die->regs;
/* Don't notify Hyper-V if the die event is other than oops */
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] tools: hv: remove cast from hyperv_die_event
2020-08-19 9:05 [PATCH v1] tools: hv: remove cast from hyperv_die_event Olaf Hering
@ 2020-08-19 11:30 ` Wei Liu
0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2020-08-19 11:30 UTC (permalink / raw)
To: Olaf Hering
Cc: linux-hyperv, linux-kernel, K. Y. Srinivasan, Haiyang Zhang,
Stephen Hemminger, Wei Liu
On Wed, Aug 19, 2020 at 11:05:09AM +0200, Olaf Hering wrote:
> No need to cast a void pointer.
>
> Signed-off-by: Olaf Hering <olaf@aepfle.de>
Applied to hyperv-next.
I also changed "tools" to "drivers".
> ---
> drivers/hv/vmbus_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
> index 910b6e90866c..187809977360 100644
> --- a/drivers/hv/vmbus_drv.c
> +++ b/drivers/hv/vmbus_drv.c
> @@ -83,7 +83,7 @@ static int hyperv_panic_event(struct notifier_block *nb, unsigned long val,
> static int hyperv_die_event(struct notifier_block *nb, unsigned long val,
> void *args)
> {
> - struct die_args *die = (struct die_args *)args;
> + struct die_args *die = args;
> struct pt_regs *regs = die->regs;
>
> /* Don't notify Hyper-V if the die event is other than oops */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-19 11:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-19 9:05 [PATCH v1] tools: hv: remove cast from hyperv_die_event Olaf Hering
2020-08-19 11:30 ` Wei Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.