Skip to content
Commit 436bf63b authored by Jingoo Han's avatar Jingoo Han Committed by Brian Norris
Browse files

mtd: lantiq-flash: Use devm_kzalloc()



Use devm_kzalloc() to make cleanup paths simpler. Also, checking
return value of devm_kzalloc() is added in order to check if the
allocation succeded.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarJohn Crispin <blogic@openwrt.org>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 82402aeb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment