Re: [PATCH 04/07] sata_mv: update ata_qc_from_tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 30, 2009 at 3:49 PM, Mark Lord <liml@xxxxxx> wrote:
> Update the logic in ata_qc_from_tag() to match that used
> in similar places elsewhere in libata.
>
> Signed-off-by: Mark Lord <mlord@xxxxxxxxx>
>
> --- old/drivers/ata/sata_mv.c   2009-01-30 18:23:22.000000000 -0500
> +++ linux/drivers/ata/sata_mv.c 2009-01-30 18:26:55.000000000 -0500
> @@ -1628,6 +1628,12 @@
>        if (pp->pp_flags & MV_PP_FLAG_NCQ_EN)
>                return NULL;
>        qc = ata_qc_from_tag(ap, ap->link.active_tag);
> +       if (qc) {
> +               if (qc->tf.flags & ATA_TFLAG_POLLING)
> +                       qc = NULL;
> +               else if (!(qc->flags & ATA_QCFLAG_ACTIVE))
> +                       qc = NULL;
> +       }
>        if (qc && (qc->tf.flags & ATA_TFLAG_POLLING))
>                qc = NULL;

Mark,
isn't the second test redudant now and can be removed?
(refering to the test immediately following the code you added).

grant

>        return qc;
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ide" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux