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>
This commit is contained in:
Benjamin Romer 2014-11-04 11:25:20 -05:00 committed by Greg Kroah-Hartman
parent 92d00cf0f5
commit 6db05d3f9a
1 changed files with 1 additions and 1 deletions

View File

@ -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;