]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ATM-ZeitNet: Replace one kzalloc() call by kcalloc()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 10 Sep 2016 08:21:15 +0000 (10:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Sep 2016 04:46:07 +0000 (21:46 -0700)
commit0f0d0ed0870eca21e36dc520d7d9be292c103f80
tree62f373ae9dd82713d4dc2e48d30693ac83e13c5d
parent5ad3ea3d3952dcbb8047f97fbfa49804ea53a53a
ATM-ZeitNet: Replace one kzalloc() call by kcalloc()

* The script "checkpatch.pl" can point information out like the following.

  WARNING: Prefer kcalloc over kzalloc with multiply

  Thus fix the affected source code place.

* Replace the specification of a data type 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: David S. Miller <davem@davemloft.net>
drivers/atm/zatm.c