summaryrefslogtreecommitdiff
path: root/drivers/staging/rts5208
diff options
context:
space:
mode:
authorWayne Porter <wporter82@gmail.com>2016-10-11 21:56:51 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-16 10:27:09 +0200
commit2eb9d8cbb3c3d4458223d3399a2a53a922e37ce8 (patch)
treed4483336c0fcc3f5fadf04146b63e0d675e3fa23 /drivers/staging/rts5208
parent8149b9ab570e75726acdc9367bc9aefe1dca76b6 (diff)
staging: rts5208: rtsx.c: Alloc sizeof struct
Satisfy checkpatch message: Prefer kzalloc(sizeof(*dev->chip)...) over kzalloc(sizeof(struct rtsx_chip)...) Signed-off-by: Wayne Porter <wporter82@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rts5208')
-rw-r--r--drivers/staging/rts5208/rtsx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c
index 809d37d243bd..dafd8fdca1ed 100644
--- a/drivers/staging/rts5208/rtsx.c
+++ b/drivers/staging/rts5208/rtsx.c
@@ -883,7 +883,7 @@ static int rtsx_probe(struct pci_dev *pci,
dev = host_to_rtsx(host);
memset(dev, 0, sizeof(struct rtsx_dev));
- dev->chip = kzalloc(sizeof(struct rtsx_chip), GFP_KERNEL);
+ dev->chip = kzalloc(sizeof(dev->chip), GFP_KERNEL);
if (!dev->chip) {
err = -ENOMEM;
goto errout;