OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f05f33f
)
Staging: nvec: removes a useless cast on a void pointer
author
Ben Marsh
<bmarsh94@gmail.com>
Tue, 15 Mar 2016 18:37:54 +0000
(19:37 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000
(07:30 -0700)
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>
drivers/staging/nvec/nvec_power.c
patch
|
blob
|
history
diff --git
a/drivers/staging/nvec/nvec_power.c
b/drivers/staging/nvec/nvec_power.c
index
b4a0545
..
fcbb0fa
100644
(file)
--- a/
drivers/staging/nvec/nvec_power.c
+++ b/
drivers/staging/nvec/nvec_power.c
@@
-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)