summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorFabio Falzoi <fabio.falzoi84@gmail.com>2014-04-22 23:23:04 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-15 15:20:51 -0700
commitba8f073281fe0b6d50332bf005dd023ecf51efa9 (patch)
treef00ec56582e8a02448f55c96be0ec4bd61e27d20 /drivers/staging
parentc606525d76d16702de1b40fcf017e63f31c270c1 (diff)
downloadblackbird-obmc-linux-ba8f073281fe0b6d50332bf005dd023ecf51efa9.tar.gz
blackbird-obmc-linux-ba8f073281fe0b6d50332bf005dd023ecf51efa9.zip
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rts5139/rts51x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rts5139/rts51x.c b/drivers/staging/rts5139/rts51x.c
index 612041005b59..8529cbabc554 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;
OpenPOWER on IntegriCloud