Thread (4 messages) 4 messages, 2 authors, 2010-06-30

Re: [PATCH]ata:ahci.c Fix warning: comparison between 'enum <anonymous>' and 'enum <anonymous>'

From: Håkon Løvdal <hidden>
Date: 2010-06-30 06:11:19

On 30 June 2010 04:53, Justin P. Mattock [off-list ref] wrote:
-       int n_ports, i, rc;
+       int n_ports, i, rc, sum = 32;

       VPRINTK("ENTER\n");

-       WARN_ON(ATA_MAX_QUEUE > AHCI_MAX_CMDS);
+       WARN_ON(ATA_MAX_QUEUE > sum);
Should'nt that rather be

       int n_ports, i, rc, sum = AHCI_MAX_CMDS;

?

BR Håkon Løvdal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help