mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 15:19:51 +00:00
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>
This commit is contained in:
parent
f05f33fae3
commit
a3dac5a35c
@ -90,7 +90,7 @@ static int nvec_power_notifier(struct notifier_block *nb,
|
||||
{
|
||||
struct nvec_power *power =
|
||||
container_of(nb, struct nvec_power, notifier);
|
||||
struct bat_response *res = (struct bat_response *)data;
|
||||
struct bat_response *res = data;
|
||||
|
||||
if (event_type != NVEC_SYS)
|
||||
return NOTIFY_DONE;
|
||||
@ -126,7 +126,7 @@ static int nvec_power_bat_notifier(struct notifier_block *nb,
|
||||
{
|
||||
struct nvec_power *power =
|
||||
container_of(nb, struct nvec_power, notifier);
|
||||
struct bat_response *res = (struct bat_response *)data;
|
||||
struct bat_response *res = data;
|
||||
int status_changed = 0;
|
||||
|
||||
if (event_type != NVEC_BAT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user