]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Fix Sparse warning: dubious: !x & y
authorBlue Swirl <blauwirbel@gmail.com>
Fri, 25 Dec 2009 16:12:17 +0000 (16:12 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 25 Dec 2009 16:12:17 +0000 (16:12 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/lsi53c895a.c

index 014c85dbda20a7ad7782a37b84c2d587f0ef3143..e4033b1393c3aa48e53a79aefa273c241e03fc73 100644 (file)
@@ -607,7 +607,7 @@ static void lsi_reselect(LSIState *s, uint32_t tag)
     id = (tag >> 8) & 0xf;
     s->ssid = id | 0x80;
     /* LSI53C700 Family Compatibility, see LSI53C895A 4-73 */
-    if (!s->dcntl & LSI_DCNTL_COM) {
+    if (!(s->dcntl & LSI_DCNTL_COM)) {
         s->sfbr = 1 << (id & 0x7);
     }
     DPRINTF("Reselected target %d\n", id);