From: Markos Chandras <Markos.Chandras@imgtec.com>
To: Himangi Saraogi <himangi774@gmail.com>, <ralf@linux-mips.org>,
<linux-mips@linux-mips.org>, <linux-kernel@vger.kernel.org>
Cc: <julia.lawall@lip6.fr>
Subject: Re: [PATCH] MIPS: Introduce the use of the managed version of kzalloc
Date: Wed, 7 May 2014 10:45:39 +0100 [thread overview]
Message-ID: <536A00C3.9020701@imgtec.com> (raw)
In-Reply-To: <20140507044211.GA3158@himangi-Dell>
Hi,
On 05/07/2014 05:43 AM, Himangi Saraogi wrote:
> This patch moves data allocated using kzalloc to managed data allocated
> using devm_kzalloc and cleans now unnecessary kfrees in probe and remove
> functions.The labels out and out_mem are also removed as they are no
> longer required.
>
> The following Coccinelle semantic patch was used for making the change:
> [..]
>
> Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
> ---
> arch/mips/mti-sead3/sead3-i2c-drv.c | 37 ++++++++++++++-----------------------
> 1 file changed, 14 insertions(+), 23 deletions(-)
>
> diff --git a/arch/mips/mti-sead3/sead3-i2c-drv.c b/arch/mips/mti-sead3/sead3-i2c-drv.c
> index 1f787a6..4d72e0e 100644
> --- a/arch/mips/mti-sead3/sead3-i2c-drv.c
> +++ b/arch/mips/mti-sead3/sead3-i2c-drv.c
> @@ -304,22 +304,18 @@ static int sead3_i2c_platform_probe(struct platform_device *pdev)
> int ret;
>[...]
> - return ret;
> + if (ret)
> + return ret;
> +
^^^^ trailing whitespace
Apart from that, the patch seems to be ok. Thanks!
Tested-by: Markos Chandras <markos.chandras@imgtec.com>
Reviewed-by: Markos Chandras <markos.chandras@imgtec.com>
--
markos
WARNING: multiple messages have this Message-ID (diff)
From: Markos Chandras <Markos.Chandras@imgtec.com>
To: Himangi Saraogi <himangi774@gmail.com>,
ralf@linux-mips.org, linux-mips@linux-mips.org,
linux-kernel@vger.kernel.org
Cc: julia.lawall@lip6.fr
Subject: Re: [PATCH] MIPS: Introduce the use of the managed version of kzalloc
Date: Wed, 7 May 2014 10:45:39 +0100 [thread overview]
Message-ID: <536A00C3.9020701@imgtec.com> (raw)
Message-ID: <20140507094539.R8Gn8aG5jCS0ctqYw0uPw0khu4Zmvr5rChpXly1_MFc@z> (raw)
In-Reply-To: <20140507044211.GA3158@himangi-Dell>
Hi,
On 05/07/2014 05:43 AM, Himangi Saraogi wrote:
> This patch moves data allocated using kzalloc to managed data allocated
> using devm_kzalloc and cleans now unnecessary kfrees in probe and remove
> functions.The labels out and out_mem are also removed as they are no
> longer required.
>
> The following Coccinelle semantic patch was used for making the change:
> [..]
>
> Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
> ---
> arch/mips/mti-sead3/sead3-i2c-drv.c | 37 ++++++++++++++-----------------------
> 1 file changed, 14 insertions(+), 23 deletions(-)
>
> diff --git a/arch/mips/mti-sead3/sead3-i2c-drv.c b/arch/mips/mti-sead3/sead3-i2c-drv.c
> index 1f787a6..4d72e0e 100644
> --- a/arch/mips/mti-sead3/sead3-i2c-drv.c
> +++ b/arch/mips/mti-sead3/sead3-i2c-drv.c
> @@ -304,22 +304,18 @@ static int sead3_i2c_platform_probe(struct platform_device *pdev)
> int ret;
>[...]
> - return ret;
> + if (ret)
> + return ret;
> +
^^^^ trailing whitespace
Apart from that, the patch seems to be ok. Thanks!
Tested-by: Markos Chandras <markos.chandras@imgtec.com>
Reviewed-by: Markos Chandras <markos.chandras@imgtec.com>
--
markos
next prev parent reply other threads:[~2014-05-07 9:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 4:43 [PATCH] MIPS: Introduce the use of the managed version of kzalloc Himangi Saraogi
2014-05-07 9:45 ` Markos Chandras [this message]
2014-05-07 9:45 ` Markos Chandras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=536A00C3.9020701@imgtec.com \
--to=markos.chandras@imgtec.com \
--cc=himangi774@gmail.com \
--cc=julia.lawall@lip6.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.