From: Lee Jones <lee.jones@linaro.org>
To: Maninder Singh <maninder1.s@samsung.com>
Cc: sameo@linux.intel.com, linux-kernel@vger.kernel.org,
pankaj.m@samsung.com
Subject: Re: [PATCH 1/1] mfd: remove unnecessary check
Date: Wed, 1 Jul 2015 08:40:53 +0100 [thread overview]
Message-ID: <20150701074053.GC3210@x1> (raw)
In-Reply-To: <20150701073950.GB3210@x1>
On Wed, 01 Jul 2015, Lee Jones wrote:
> On Tue, 30 Jun 2015, Maninder Singh wrote:
>
> > o Making pdata NULL check to (!pdata) as coding statndard
> > and all other checks in file.
> > o Removing redundant check of pdata, because we already
> > check for pdata, and also derefernced before this check
> >
> > Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
> > Reviewed-by: Vaneet Narang <v.narang@samsung.com>
> > ---
> > drivers/mfd/t7l66xb.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Applied, with a properly formatted subject line.
Should have probably been more forthcomming with some advice.
Next time, please use `git log --oneline -- <subsystem>` to see what
the accepted format is.
> > diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c
> > index c09fb5d..854b05f 100644
> > --- a/drivers/mfd/t7l66xb.c
> > +++ b/drivers/mfd/t7l66xb.c
> > @@ -318,7 +318,7 @@ static int t7l66xb_probe(struct platform_device *dev)
> > struct resource *iomem, *rscr;
> > int ret;
> >
> > - if (pdata == NULL)
> > + if (!pdata)
> > return -EINVAL;
> >
> > iomem = platform_get_resource(dev, IORESOURCE_MEM, 0);
> > @@ -371,7 +371,7 @@ static int t7l66xb_probe(struct platform_device *dev)
> >
> > clk_prepare_enable(t7l66xb->clk48m);
> >
> > - if (pdata && pdata->enable)
> > + if (pdata->enable)
> > pdata->enable(dev);
> >
> > /* Mask all interrupts */
>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2015-07-01 7:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-30 12:12 [PATCH 1/1] mfd: remove unnecessary check Maninder Singh
2015-07-01 7:39 ` Lee Jones
2015-07-01 7:40 ` Lee Jones [this message]
2015-07-01 7:59 ` Krzysztof Kozlowski
2015-07-01 14:08 ` Lee Jones
2015-07-02 0:14 ` Krzysztof Kozlowski
-- strict thread matches above, loose matches on Subject: below --
2015-07-02 3:14 Maninder Singh
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=20150701074053.GC3210@x1 \
--to=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maninder1.s@samsung.com \
--cc=pankaj.m@samsung.com \
--cc=sameo@linux.intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox