All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: James Courtier-Dutton <James@superbug.co.uk>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>, linux-ide@vger.kernel.org
Subject: Re: [PATCH] siimage: coding style cleanup (take 2)
Date: Sun, 27 Apr 2008 21:34:49 +0200	[thread overview]
Message-ID: <200804272134.50035.bzolnier@gmail.com> (raw)
In-Reply-To: <480E1C28.6090307@superbug.co.uk>

On Tuesday 22 April 2008, James Courtier-Dutton wrote:
> Sergei Shtylyov wrote:
> >
> >  	/* return 1 if Device INTR asserted */
> >  	pci_read_config_byte(dev, addr, &dma_altstat);
> >  	if (dma_altstat & 8)
> > -		return 0;	//return 1;
> > +		return 0;	/* return 1; */
> > +
> >  	return 0;
> >  }
> >  
> >   
> This bit of code looks strange.
> The comment says return 1, but the return has been commented to return 0.
> But, if we return 0, why bother with the if test anyway?

Seems like we should remove this test (and the similar one in
siimage_mmio_dma_test_irq) for now?  Care to send a patch?

Thanks,
Bart

  reply	other threads:[~2008-04-27 19:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-22 16:56 [PATCH] siimage: coding style cleanup (take 2) Sergei Shtylyov
2008-04-22 17:11 ` James Courtier-Dutton
2008-04-27 19:34   ` Bartlomiej Zolnierkiewicz [this message]
2008-04-27 18:37 ` Bartlomiej Zolnierkiewicz

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=200804272134.50035.bzolnier@gmail.com \
    --to=bzolnier@gmail.com \
    --cc=James@superbug.co.uk \
    --cc=linux-ide@vger.kernel.org \
    --cc=sshtylyov@ru.mvista.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 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.