summaryrefslogtreecommitdiff
path: root/arch/arm/mach-s3c24xx/iotiming-s3c2412.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-10-02 20:16:58 +0300
committerKrzysztof Kozlowski <krzk@kernel.org>2017-10-04 22:09:05 +0300
commit637a75207087b4e862e0b5016547dbf8753b4346 (patch)
tree47634af33daaa09c8f35a7c39d90738729b33df0 /arch/arm/mach-s3c24xx/iotiming-s3c2412.c
parentb3b391f8e49cf71d70a95a55ad0808e1fdf3e130 (diff)
downloadlinux-637a75207087b4e862e0b5016547dbf8753b4346.tar.xz
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>
Diffstat (limited to 'arch/arm/mach-s3c24xx/iotiming-s3c2412.c')
-rw-r--r--arch/arm/mach-s3c24xx/iotiming-s3c2412.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c24xx/iotiming-s3c2412.c b/arch/arm/mach-s3c24xx/iotiming-s3c2412.c
index f09d5d5ea7ed..01bcd7d5dac7 100644
--- a/arch/arm/mach-s3c24xx/iotiming-s3c2412.c
+++ b/arch/arm/mach-s3c24xx/iotiming-s3c2412.c
@@ -242,7 +242,7 @@ int s3c2412_iotiming_get(struct s3c_cpufreq_config *cfg,
if (!bank_is_io(bank, bankcfg))
continue;
- bt = kzalloc(sizeof(struct s3c2412_iobank_timing), GFP_KERNEL);
+ bt = kzalloc(sizeof(*bt), GFP_KERNEL);
if (!bt)
return -ENOMEM;