mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
powerpc: Use sizeof(*foo) rather than sizeof(struct foo)
It's slightly less error prone to use sizeof(*foo) rather than specifying the type. Signed-off-by: Markus Elfring <[email protected]> [mpe: Consolidate into one patch, rewrite change log] Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
31513207ce
commit
a0828cf57a
20 changed files with 31 additions and 36 deletions
|
|
@ -397,7 +397,7 @@ static int rackmeter_probe(struct macio_dev* mdev,
|
|||
}
|
||||
|
||||
/* Create and initialize our instance data */
|
||||
rm = kzalloc(sizeof(struct rackmeter), GFP_KERNEL);
|
||||
rm = kzalloc(sizeof(*rm), GFP_KERNEL);
|
||||
if (rm == NULL) {
|
||||
printk(KERN_ERR "rackmeter: failed to allocate memory !\n");
|
||||
rc = -ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue