mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
remoteproc: use variable names for sizeof() operator
Fix the code formatting to use the kernel preferred style of using the actual variables to determize the size using the sizeof() operator. Signed-off-by: Suman Anna <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
This commit is contained in:
parent
56324d7a22
commit
899585ad39
1 changed files with 2 additions and 2 deletions
|
|
@ -358,7 +358,7 @@ static int rproc_handle_vdev(struct rproc *rproc, struct fw_rsc_vdev *rsc,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
rvdev = kzalloc(sizeof(struct rproc_vdev), GFP_KERNEL);
|
||||
rvdev = kzalloc(sizeof(*rvdev), GFP_KERNEL);
|
||||
if (!rvdev)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
@ -1359,7 +1359,7 @@ struct rproc *rproc_alloc(struct device *dev, const char *name,
|
|||
*/
|
||||
name_len = strlen(name) + strlen(template) - 2 + 1;
|
||||
|
||||
rproc = kzalloc(sizeof(struct rproc) + len + name_len, GFP_KERNEL);
|
||||
rproc = kzalloc(sizeof(*rproc) + len + name_len, GFP_KERNEL);
|
||||
if (!rproc)
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue