From: Jeff Garzik <jgarzik@pobox.com>
To: Brian King <brking@us.ibm.com>
Cc: linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: [PATCH 05/15] libata: Add __ata_scsi_ioctl
Date: Tue, 21 Mar 2006 20:54:28 -0500 [thread overview]
Message-ID: <4420AE54.6090603@pobox.com> (raw)
In-Reply-To: <200603172304.k2HN4Stx030065@d01av02.pok.ibm.com>
Brian King wrote:
>
> -int ata_scsi_ioctl(struct scsi_device *scsidev, int cmd, void __user *arg)
> +int __ata_scsi_ioctl(struct scsi_device *scsidev, int cmd, void __user *arg)
> {
> - struct ata_port *ap;
> - struct ata_device *dev;
> int val = -EINVAL, rc = -EINVAL;
>
> - ap = (struct ata_port *) &scsidev->host->hostdata[0];
> - if (!ap)
> - goto out;
> -
> - dev = ata_scsi_find_dev(ap, scsidev);
> - if (!dev) {
> - rc = -ENODEV;
> - goto out;
> - }
> -
> switch (cmd) {
Rather than create a new function, it looks like the above code can
simply be removed. I don't see anything that uses 'ap' or 'dev'.
Jeff
next prev parent reply other threads:[~2006-03-22 1:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-17 23:04 [PATCH 05/15] libata: Add __ata_scsi_ioctl Brian King
2006-03-22 1:54 ` Jeff Garzik [this message]
2006-03-22 23:22 ` Brian King
2006-03-22 23:35 ` Jeff Garzik
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=4420AE54.6090603@pobox.com \
--to=jgarzik@pobox.com \
--cc=brking@us.ibm.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@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 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).