Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: nvec: removes a useless cast on a void pointer

Remove an unnecessary cast on a void pointer in nvec_power.c

Signed-off-by: Ben Marsh <bmarsh94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ben Marsh and committed by
Greg Kroah-Hartman
a3dac5a3 f05f33fa

+2 -2
+2 -2
drivers/staging/nvec/nvec_power.c
··· 90 90 { 91 91 struct nvec_power *power = 92 92 container_of(nb, struct nvec_power, notifier); 93 - struct bat_response *res = (struct bat_response *)data; 93 + struct bat_response *res = data; 94 94 95 95 if (event_type != NVEC_SYS) 96 96 return NOTIFY_DONE; ··· 126 126 { 127 127 struct nvec_power *power = 128 128 container_of(nb, struct nvec_power, notifier); 129 - struct bat_response *res = (struct bat_response *)data; 129 + struct bat_response *res = data; 130 130 int status_changed = 0; 131 131 132 132 if (event_type != NVEC_BAT)