[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: Another small error. Re: Logical vs. bitwise AND in
From: Alexander Motin <mav () freebsd ! org>
Date: 2010-11-22 23:08:01
Message-ID: 4CEAF7D1.8050505 () FreeBSD ! org
[Download RAW message or body]
On 23.11.2010 00:07, Artem Belevich wrote:
> While it's not directly related to hunting for '&'/'&&' typos, here's
> another seemingly wrong place in the code:
>
> --- a/sys/dev/ahci/ahci.c
> +++ b/sys/dev/ahci/ahci.c
> @@ -852,7 +852,7 @@ ahci_ch_attach(device_t dev)
> ch->caps = ctlr->caps;
> ch->caps2 = ctlr->caps2;
> ch->quirks = ctlr->quirks;
> - ch->numslots = ((ch->caps& AHCI_CAP_NCS)>> AHCI_CAP_NCS_SHIFT) + 1,
> + ch->numslots = ((ch->caps& AHCI_CAP_NCS)>> AHCI_CAP_NCS_SHIFT) + 1;
> mtx_init(&ch->mtx, "AHCI channel lock", NULL, MTX_DEF);
> resource_int_value(device_get_name(dev),
> device_get_unit(dev), "pm_level",&ch->pm_level);
>
> I did mention it on freebsd-current@ some time back:
> http://lists.freebsd.org/pipermail/freebsd-current/2009-November/013645.html
Fixed at r215725. Thanks.
--
Alexander Motin
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic