From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: akpm@linux-foundation.org
Cc: gorcunov@gmail.com, linuxppc-dev@ozlabs.org,
roel.kluin@gmail.com, waite@skycomputers.com,
galak@gate.crashing.org
Subject: Re: [patch 1/5] powerpc: Sky CPU: redundant or incorrect tests on unsigned
Date: Fri, 18 Dec 2009 14:45:10 +1100 [thread overview]
Message-ID: <1261107910.2173.11.camel@pasglop> (raw)
In-Reply-To: <1261107631.2173.10.camel@pasglop>
On Fri, 2009-12-18 at 14:40 +1100, Benjamin Herrenschmidt wrote:
> On Thu, 2009-12-17 at 16:44 -0800, akpm@linux-foundation.org wrote:
> > From: Roel Kluin <roel.kluin@gmail.com>
> >
> > count is unsigned and cannot be less than 0.
>
> Is this really a powerpc thing ?
>
> This driver is only build with CONFIG_HDPU_FEATURES and a git grep
> HDPU_FEATURES returns no Kconfig that defines it :-)
>
> I'm happy to apply such a trivial thing but it's weird isn't it ?
Ok so it looks like some old stuff that got removed a long time ago and
never made it to arch/powerpc.
I'll send a patch to just remove the whole driver, it's stale.
Cheers,
Ben.
> Cheers,
> Ben.
>
> > Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> > Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
> > Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > Cc: Kumar Gala <galak@gate.crashing.org>
> > Cc: Brian Waite <waite@skycomputers.com>
> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> > ---
> >
> > drivers/misc/hdpuftrs/hdpu_cpustate.c | 5 -----
> > 1 file changed, 5 deletions(-)
> >
> > diff -puN drivers/misc/hdpuftrs/hdpu_cpustate.c~powerpc-sky-cpu-redundant-or-incorrect-tests-on-unsigned drivers/misc/hdpuftrs/hdpu_cpustate.c
> > --- a/drivers/misc/hdpuftrs/hdpu_cpustate.c~powerpc-sky-cpu-redundant-or-incorrect-tests-on-unsigned
> > +++ a/drivers/misc/hdpuftrs/hdpu_cpustate.c
> > @@ -121,8 +121,6 @@ static ssize_t cpustate_read(struct file
> > {
> > unsigned char data;
> >
> > - if (count < 0)
> > - return -EFAULT;
> > if (count == 0)
> > return 0;
> >
> > @@ -137,9 +135,6 @@ static ssize_t cpustate_write(struct fil
> > {
> > unsigned char data;
> >
> > - if (count < 0)
> > - return -EFAULT;
> > -
> > if (count == 0)
> > return 0;
> >
> > _
>
prev parent reply other threads:[~2009-12-18 3:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-18 0:44 [patch 1/5] powerpc: Sky CPU: redundant or incorrect tests on unsigned akpm
2009-12-18 3:40 ` Benjamin Herrenschmidt
2009-12-18 3:45 ` Benjamin Herrenschmidt [this message]
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=1261107910.2173.11.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=akpm@linux-foundation.org \
--cc=galak@gate.crashing.org \
--cc=gorcunov@gmail.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=roel.kluin@gmail.com \
--cc=waite@skycomputers.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;
as well as URLs for NNTP newsgroup(s).