projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8149b9a
)
staging: rts5208: rtsx.c: Alloc sizeof struct
author
Wayne Porter
<wporter82@gmail.com>
Tue, 11 Oct 2016 21:56:51 +0000
(21:56 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:27:09 +0000
(10:27 +0200)
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>
drivers/staging/rts5208/rtsx.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rts5208/rtsx.c
b/drivers/staging/rts5208/rtsx.c
index
809d37d
..
dafd8fd
100644
(file)
--- 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;