public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Randy Dunlap <rdunlap@xenotime.net>
Cc: Joe Perches <joe@perches.com>, Hannes Reinecke <hare@suse.de>,
	linux-scsi@vger.kernel.org
Subject: Re: [PATCH] drivers/scsi/aic7xxx/aic7xxx_osm_pci.c - remove pointer comparison to 0
Date: Mon, 11 Feb 2008 11:49:02 -0600	[thread overview]
Message-ID: <1202752142.3122.52.camel@localhost.localdomain> (raw)
In-Reply-To: <20080211091742.dff2e2da.rdunlap@xenotime.net>

On Mon, 2008-02-11 at 09:17 -0800, Randy Dunlap wrote:
> On Mon, 11 Feb 2008 09:08:05 -0800 Joe Perches wrote:
> 
> > On Mon, 2008-02-11 at 09:30 -0600, James Bottomley wrote:
> > > On Sun, 2008-02-10 at 21:47 -0800, Joe Perches wrote:
> > > > -       if (request_region(*base, 256, "aic7xxx") == 0)
> > > > +       if (!request_region(*base, 256, "aic7xxx"))
> > > 
> > > This patch is completely pointless.
> > 
> > It removes a sparse warning.
> 
> I try to say that in the patch description.  Andrew also tries
> to enforce such errors/warnings in patch descriptions....

Well, the aic7xxx subdirectory is a nightmare of CodingStyle non
conformities ... you can see the return (ENOMEM) just in this patch.
That's two problems: the brackets and non negative error returns which
are later converted to negative ones thus inviting sign problems.  The
driver is also about 3x bigger than it should be because of the vestiges
of the BSD glue layer.  However, I think my life is too short to apply
the 32,554 patches it would take to correct this an issue at a time.

This is one of those drivers we tolerate because we must and we fix up
around the regions we have to touch.

James



      reply	other threads:[~2008-02-11 17:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-11  5:47 [PATCH] drivers/scsi/aic7xxx/aic7xxx_osm_pci.c - remove pointer comparison to 0 Joe Perches
2008-02-11 15:30 ` James Bottomley
2008-02-11 17:08   ` Joe Perches
2008-02-11 17:17     ` Randy Dunlap
2008-02-11 17:49       ` James Bottomley [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=1202752142.3122.52.camel@localhost.localdomain \
    --to=james.bottomley@hansenpartnership.com \
    --cc=hare@suse.de \
    --cc=joe@perches.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=rdunlap@xenotime.net \
    /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