s390/pkey: fix kzalloc-simple.cocci warnings
authorVasyl Gomonovych <gomonovych@gmail.com>
Wed, 11 Oct 2017 19:52:46 +0000 (21:52 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Oct 2017 06:19:23 +0000 (08:19 +0200)
commit0bb6bba5fb426165aa2720e359107ef7c1d90f70
treeea56a67f175a5a996f9ac0d276db48664feab549
parentdf8bbd0c98bef5bcf691709437c4102e9840b0f5
s390/pkey: fix kzalloc-simple.cocci warnings

drivers/s390/crypto/pkey_api.c:128:11-18: WARNING:
kzalloc should be used for cprbmem, instead of kmalloc/memset

Use kzalloc rather than kmalloc followed by memset with 0

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/pkey_api.c