aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2015-05-05 18:35:44 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-08 15:25:53 +0200
commitcbc2af3cb5667ff1576b9bf237082f25503a3b8b (patch)
treed3bb77c8061c04b85628e091ff84d2e9f196c08c
parentstaging: unisys: Remove unncessary parenthesis (diff)
staging: unisys: Don't zero struct elements which will be memset away
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/unisys/visorchipset/visorchipset_main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/unisys/visorchipset/visorchipset_main.c b/drivers/staging/unisys/visorchipset/visorchipset_main.c
index b4e28d21d0c6..90018ac3da36 100644
--- a/drivers/staging/unisys/visorchipset/visorchipset_main.c
+++ b/drivers/staging/unisys/visorchipset/visorchipset_main.c
@@ -522,12 +522,7 @@ bus_info_clear(void *v)
struct visorchipset_bus_info *p = (struct visorchipset_bus_info *) v;
kfree(p->name);
- p->name = NULL;
-
kfree(p->description);
- p->description = NULL;
-
- p->state.created = 0;
memset(p, 0, sizeof(struct visorchipset_bus_info));
}
@@ -537,7 +532,6 @@ dev_info_clear(void *v)
struct visorchipset_device_info *p =
(struct visorchipset_device_info *) v;
- p->state.created = 0;
memset(p, 0, sizeof(struct visorchipset_device_info));
}