HSI: nokia-modem: Use devm_kcalloc() in nokia_modem_gpio_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 25 Apr 2017 07:49:22 +0000 (09:49 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 8 Jun 2017 11:21:43 +0000 (13:21 +0200)
commit1be0593f05e25d56a8f65586ea6d9afa601743bc
treed47aa5ac517415aaa6b19537e21a58c71fbdeaf2
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
HSI: nokia-modem: Use devm_kcalloc() in nokia_modem_gpio_probe()

* 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".

  This issue was detected by using the Coccinelle software.

* 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.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/hsi/clients/nokia-modem.c