From: Fabio Estevam Date: Fri, 21 Aug 2015 16:52:00 +0000 (-0300) Subject: crypto: caam - Use the preferred style for memory allocations X-Git-Tag: omap-for-v4.3/fixes-merge-window~29^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c4f9733e26f0d6977096fcafe71ea2ba9f0cd7c;p=pandora-kernel.git crypto: caam - Use the preferred style for memory allocations "The preferred form for passing a size of a struct is the following: p = kmalloc(sizeof(*p), ...); .... The preferred form for allocating a zeroed array is the following: p = kcalloc(n, sizeof(...), ...); " ,so do as suggested. Signed-off-by: Fabio Estevam Reviewed-by: Horia Geant? Signed-off-by: Herbert Xu --- Reading git-diff-tree failed