commit | 666f21413b881e159efaf862f119d4d058fa2c4a | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Mon Sep 14 17:45:57 2020 +0200 |
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | Tue Sep 15 10:50:37 2020 +0200 |
tree | 2abd90d99c7657b23d781369a3de486ceb7b6d1c | |
parent | 955a123c14906e3adc43d43281f8fde91f631f7f [diff] |
rtc: rx8010: prefer sizeof(*val) over sizeof(struct type_of_val) Using the size of the variable is preferred over using the size of its type when allocating memory. Convert the call to devm_kzalloc() in probe(). Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20200914154601.32245-11-brgl@bgdev.pl