From: Christoph Hellwig <hch@infradead.org>
To: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
Cc: linux-kernel@vger.kernel.org, Brard Roudier <groudier@free.fr>
Subject: Re: [patch][2/3] qlogic: call request_irq() with private data
Date: Fri, 17 Oct 2003 13:01:00 +0100 [thread overview]
Message-ID: <20031017130100.B26699@infradead.org> (raw)
In-Reply-To: <20031016015349.GB1765@cathedrallabs.org>; from aris@cathedrallabs.org on Wed, Oct 15, 2003 at 11:53:49PM -0200
On Wed, Oct 15, 2003 at 11:53:49PM -0200, Aristeu Sergio Rozanski Filho wrote:
> + hreg->can_queue = 1;
We already have can_queue set in the host template, so this line is
superflous.
> +#ifdef QL_USE_IRQ
> + if (qlirq < 0 || request_irq(qlirq, do_ql_ihandl, 0, "qlogicfas", hreg))
> + goto free_scsi_host;
> +#endif
Does the driver work at all with QL_USE_IRQ undefined? I don't think so
and if I'm right you should probably nuke the ifdef while you're at it.
> +free_scsi_host:
> + kfree(hreg);
should be
#ifdef PCMCIA
scsi_host_put(shost);
#else
scsi_unregister(shost):
#endif
if the reworked version of the previous patch is applied.
> if (host->can_queue)
can_queue can't be 0 these days so this one could go away aswell.
prev parent reply other threads:[~2003-10-17 12:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-16 1:53 [patch][2/3] qlogic: call request_irq() with private data Aristeu Sergio Rozanski Filho
2003-10-16 11:30 ` Jeff Garzik
2003-10-16 22:32 ` Aristeu Sergio Rozanski Filho
2003-10-17 12:01 ` Christoph Hellwig [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=20031017130100.B26699@infradead.org \
--to=hch@infradead.org \
--cc=aris@cathedrallabs.org \
--cc=groudier@free.fr \
--cc=linux-kernel@vger.kernel.org \
/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.