aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys
diff options
context:
space:
mode:
authorBenjamin Romer <benjamin.romer@unisys.com>2014-11-04 16:25:20 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-05 19:50:49 (GMT)
commit6db05d3f9abbdb0bdf9e07bf458bd7b2bea77092 (patch)
tree457e3593af27389973caa4a98fd0b83ecc85bf62 /drivers/staging/unisys
parent92d00cf0f52198dd364f88eda254cb140e458fe6 (diff)
staging: unisys: fix sizeof() in visor_memregion_create_overlapped()
Use the variable name rather than the type in the sizeof() call in this function. Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys')
-rw-r--r--drivers/staging/unisys/visorutil/memregion_direct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visorutil/memregion_direct.c b/drivers/staging/unisys/visorutil/memregion_direct.c
index 37770aa..26faad4 100644
--- a/drivers/staging/unisys/visorutil/memregion_direct.c
+++ b/drivers/staging/unisys/visorutil/memregion_direct.c
@@ -86,7 +86,7 @@ visor_memregion_create_overlapped(struct memregion *parent, ulong offset,
__func__, offset, nbytes);
return NULL;
}
- memregion = kzalloc(sizeof(struct memregion), GFP_KERNEL|__GFP_NORETRY);
+ memregion = kzalloc(sizeof(*memregion), GFP_KERNEL|__GFP_NORETRY);
if (memregion == NULL) {
ERRDRV("%s allocation failed", __func__);
return NULL;

Privacy Policy