Staging: rts5139: More appropriate use of sizeof operand
Use the pointer rts51x to get the size of the struct. Signed-off-by: Fabio Falzoi <fabio.falzoi84@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c606525d76
commit
ba8f073281
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue