diff options
author | 2017-04-26 09:50:34 +0200 | |
---|---|---|
committer | 2017-05-15 08:59:08 +0200 | |
commit | aa248927d8dbaa35e0fb920f30d0da2164dc7a98 (patch) | |
tree | 550a86ed89e7cd077efe303485703d46936ce58d /drivers/reset/Makefile | |
parent | Linux 4.12-rc1 (diff) | |
download | linux-aa248927d8dbaa35e0fb920f30d0da2164dc7a98.tar.gz linux-aa248927d8dbaa35e0fb920f30d0da2164dc7a98.tar.bz2 linux-aa248927d8dbaa35e0fb920f30d0da2164dc7a98.zip |
reset: sti: Use devm_kcalloc() in syscfg_reset_controller_register()
* A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "devm_kcalloc".
* Replace the specification of a data structure by a pointer dereference
to make the corresponding size determination a bit safer according to
the Linux coding style convention.
* Delete the local variable "size" which became unnecessary with
this refactoring.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset/Makefile')
0 files changed, 0 insertions, 0 deletions