Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@debian.org>
To: Stan Sieler <sieler@allegro.com>
Cc: Matthew Wilcox <willy@debian.org>, parisc-linux@parisc-linux.org
Subject: Re: [parisc-linux] pdc_add_valid
Date: Sat, 6 Oct 2001 00:24:10 +0100	[thread overview]
Message-ID: <20011006002410.D3745@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <200110052158.OAA06081@opus.allegro.com>; from sieler@allegro.com on Fri, Oct 05, 2001 at 02:58:13PM -0700

On Fri, Oct 05, 2001 at 02:58:13PM -0700, Stan Sieler wrote:
> > 	if (valid_io_addr (port+4)) {
> vs:
> > +       return (pdc_add_valid (addr) == PDC_OK);
> 
> The latter has the advantage that the reader knows it's a PDC
> routine being called, not some kernel routine that could be done
> who knows what.
> 
> Thus, I'd go for the latter, or change your "valid_io_addr" to
> "pdc_valid_io_addr", to (a) be readable; and (b) convey the PDC info.

I should have explained this in my original mail... the reason I don't
want to make this a pdc_* call is that I believe we have an expectation
that pdc_* calls return PDC_ error codes.  Perhaps this isn't an
expectation that people have, in which case I don't have an objection
to simply renaming pdc_add_valid to pdc_addr_valid, and changing the
sense of the return value.

-- 
Revolutions do not require corporate support.

  reply	other threads:[~2001-10-05 23:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-05 16:22 [parisc-linux] pdc_add_valid Matthew Wilcox
2001-10-05 21:58 ` Stan Sieler
2001-10-05 23:24   ` Matthew Wilcox [this message]
2001-10-06  0:26 ` Grant Grundler

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=20011006002410.D3745@parcelfarce.linux.theplanet.co.uk \
    --to=willy@debian.org \
    --cc=parisc-linux@parisc-linux.org \
    --cc=sieler@allegro.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