]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ARM: s3c24xx: Simplify size used for kzalloc in iotiming get
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 2 Oct 2017 17:16:58 +0000 (19:16 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Wed, 4 Oct 2017 19:09:05 +0000 (21:09 +0200)
commit637a75207087b4e862e0b5016547dbf8753b4346
tree47634af33daaa09c8f35a7c39d90738729b33df0
parentb3b391f8e49cf71d70a95a55ad0808e1fdf3e130
ARM: s3c24xx: Simplify size used for kzalloc in iotiming get

Simplify the size argument of kzalloc() memory allocation by using
sizeof(*ptr) syntax.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
[krzk: Rewrite commit message]
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c24xx/iotiming-s3c2410.c
arch/arm/mach-s3c24xx/iotiming-s3c2412.c