Commit ba8f0732 authored by Fabio Falzoi's avatar Fabio Falzoi Committed by Greg Kroah-Hartman

Staging: rts5139: More appropriate use of sizeof operand

Use the pointer rts51x to get the size of the struct.
Signed-off-by: default avatarFabio Falzoi <fabio.falzoi84@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c606525d
...@@ -719,7 +719,7 @@ static int rts51x_probe(struct usb_interface *intf, ...@@ -719,7 +719,7 @@ static int rts51x_probe(struct usb_interface *intf,
pr_debug("%s detected\n", RTS51X_NAME); pr_debug("%s detected\n", RTS51X_NAME);
rts51x = kzalloc(sizeof(struct rts51x_usb), GFP_KERNEL); rts51x = kzalloc(sizeof(*rts51x), GFP_KERNEL);
if (!rts51x) if (!rts51x)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment