OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] pata_artop: fix "& (1 >>" typo
[PATCH] pata_artop: fix "& (1 >>" typo [message #8217] Fri, 10 November 2006 15:46 Go to next message
Alexey Dobriyan is currently offline  Alexey Dobriyan
Messages: 195
Registered: August 2006
Senior Member
Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
---

drivers/ata/pata_artop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/ata/pata_artop.c
+++ b/drivers/ata/pata_artop.c
@@ -92,7 +92,7 @@ static int artop6260_pre_reset(struct at
return -ENOENT;

pci_read_config_byte(pdev, 0x49, &tmp);
- if (tmp & (1 >> ap->port_no))
+ if (tmp & (1 << ap->port_no))
ap->cbl = ATA_CBL_PATA40;
else
ap->cbl = ATA_CBL_PATA80;
Re: [PATCH] pata_artop: fix "& (1 >>" typo [message #8231 is a reply to message #8217] Fri, 10 November 2006 16:25 Go to previous messageGo to next message
Alan Cox is currently offline  Alan Cox
Messages: 48
Registered: May 2006
Member
On Fri, Nov 10, 2006 at 10:52:46PM +0300, Alexey Dobriyan wrote:
> Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>

Acked-by: Alan Cox <alan@redhat.com>

> ---
>
> drivers/ata/pata_artop.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/ata/pata_artop.c
> +++ b/drivers/ata/pata_artop.c
> @@ -92,7 +92,7 @@ static int artop6260_pre_reset(struct at
> return -ENOENT;
>
> pci_read_config_byte(pdev, 0x49, &tmp);
> - if (tmp & (1 >> ap->port_no))
> + if (tmp & (1 << ap->port_no))
> ap->cbl = ATA_CBL_PATA40;
> else
> ap->cbl = ATA_CBL_PATA80;

--
"People who choose variable names like htlbpagek SHOULD be sent to
produce a street map of R'Lyeh.  On site."
-- Al Viro
Re: [PATCH] pata_artop: fix "& (1 >>" typo [message #8308 is a reply to message #8217] Tue, 14 November 2006 14:52 Go to previous message
Jeff Garzik is currently offline  Jeff Garzik
Messages: 9
Registered: February 2006
Junior Member
applied
Previous Topic: [PATCH] move_task_off_dead_cpu() should be called with disabled ints
Next Topic: [PATCH] reiserfs: add missing D-cache flushing
Goto Forum:
  


Current Time: Wed Jul 30 13:39:11 GMT 2025

Total time taken to generate the page: 0.11248 seconds