crypto: omap-aes - Convert kzalloc to devm_kzalloc
authorJoel Fernandes <joelf@ti.com>
Sun, 18 Aug 2013 02:42:33 +0000 (21:42 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 21 Aug 2013 11:28:05 +0000 (21:28 +1000)
commit05007c10ff76a9d6d85c007fe3a7f531611fda5c
treeb112cbe59ce5afbe5eb393908546a1d553ecda51
parent6242332ff2f3431c4fb6f4b21581f38f16569c13
crypto: omap-aes - Convert kzalloc to devm_kzalloc

Use devm_kzalloc instead of kzalloc. With this change, there is no need to
call kfree in error/exit paths.

Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c