]> git.baikalelectronics.ru Git - 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)
commit8d0437adce3d7c2c9d910bce1330d1b73b23a93e
tree62f373ae9dd82713d4dc2e48d30693ac83e13c5d
parent8839cc32f58de213813486ef40a5db683e5a3e28
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