From: Sergei Shtylyov Date: Fri, 2 Dec 2011 15:39:53 +0000 (+0300) Subject: libata-sff: use ATAPI_{COD|IO} X-Git-Tag: accepted/tizen/common/20141203.182822~5543^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=002ae08448e241ea8e304008f9cb4bc836f9ff16;p=platform%2Fkernel%2Flinux-arm64.git libata-sff: use ATAPI_{COD|IO} atapi_pio_bytes() uses bare numbers for the ATAPI interrupt reason bits despite these are #define'd in . Signed-off-by: Sergei Shtylyov Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 4cadfa2..9691dd0 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c @@ -929,11 +929,11 @@ static void atapi_pio_bytes(struct ata_queued_cmd *qc) bytes = (bc_hi << 8) | bc_lo; /* shall be cleared to zero, indicating xfer of data */ - if (unlikely(ireason & (1 << 0))) + if (unlikely(ireason & ATAPI_COD)) goto atapi_check; /* make sure transfer direction matches expected */ - i_write = ((ireason & (1 << 1)) == 0) ? 1 : 0; + i_write = ((ireason & ATAPI_IO) == 0) ? 1 : 0; if (unlikely(do_write != i_write)) goto atapi_check;