Re: [PATCH V1] mtd : nand : denali :- No need of devm functions

From: Arvind Yadav
Date: Mon Jan 02 2017 - 02:56:28 EST


yes, if Memory is live out side function. Then devm_kzalloc()
approach has the benefit of simplifying the different error paths.

Here, Memory is alive with in function. we are going to free allocate memory
then why we need devm api. In this case Devm will first add this entry to
list and immediately it will remove from list. In this case, It's just a overhead
for devm api.

-Arvind


On Thursday 29 December 2016 10:54 PM, Boris Brezillon wrote:
The
devm_kzalloc() approach has the benefit of simplifying the different
error paths.