Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1549009

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

From Arvind Yadav <arvind.yadav.cs@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH V1] mtd : nand : denali :- No need of devm functions
Date 2017-01-02 09:00 +0100
Message-ID <sV5Hb-3CL-5@gated-at.bofh.it> (permalink)
References <sLMaL-1Ll-77@gated-at.bofh.it> <sTMGB-14H-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH V1] mtd : nand : denali :- No need of devm functions Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-12-29 18:30 +0100
  Re: [PATCH V1] mtd : nand : denali :- No need of devm functions Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-01-02 09:00 +0100
    Re: [PATCH V1] mtd : nand : denali :- No need of devm functions Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-01-02 10:00 +0100

csiph-web