From: Fabio Falzoi Date: Tue, 22 Apr 2014 21:23:04 +0000 (+0200) Subject: Staging: rts5139: More appropriate use of sizeof operand X-Git-Tag: v4.14-rc1~7083^2~39^2~856 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba8f073281fe0b6d50332bf005dd023ecf51efa9;p=platform%2Fkernel%2Flinux-rpi.git Staging: rts5139: More appropriate use of sizeof operand Use the pointer rts51x to get the size of the struct. Signed-off-by: Fabio Falzoi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rts5139/rts51x.c b/drivers/staging/rts5139/rts51x.c index 6120410..8529cba 100644 --- a/drivers/staging/rts5139/rts51x.c +++ b/drivers/staging/rts5139/rts51x.c @@ -719,7 +719,7 @@ static int rts51x_probe(struct usb_interface *intf, pr_debug("%s detected\n", RTS51X_NAME); - rts51x = kzalloc(sizeof(struct rts51x_usb), GFP_KERNEL); + rts51x = kzalloc(sizeof(*rts51x), GFP_KERNEL); if (!rts51x) return -ENOMEM;