hw/pci-host: Remove useless parenthesis around DIV_ROUND_UP macro
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 5 Jul 2018 15:58:10 +0000 (12:58 -0300)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 26 Oct 2018 15:17:32 +0000 (17:17 +0200)
Patch created mechanically by rerunning:

  $  spatch --sp-file scripts/coccinelle/round.cocci \
            --macro-file scripts/cocci-macro-file.h \
            --dir . --in-place

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20180705155811.20366-7-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/pci-host/piix.c
hw/pci-host/q35.c

index da73743fa2ab1377a5a56c5d4e0ef5bb686c968a..47293a39157cb69acb3f090c89c4d9bfbc05c902 100644 (file)
@@ -144,7 +144,7 @@ static void i440fx_update_memory_mappings(PCII440FXState *d)
     memory_region_transaction_begin();
     for (i = 0; i < 13; i++) {
         pam_update(&d->pam_regions[i], i,
-                   pd->config[I440FX_PAM + (DIV_ROUND_UP(i, 2))]);
+                   pd->config[I440FX_PAM + DIV_ROUND_UP(i, 2)]);
     }
     memory_region_set_enabled(&d->smram_region,
                               !(pd->config[I440FX_SMRAM] & SMRAM_D_OPEN));
index 8ce1e09932523ce090380f0d7e0669f72013ae7a..966a7cf92dfea20aae5a9ef8b3bf353e2ab2ad5c 100644 (file)
@@ -356,7 +356,7 @@ static void mch_update_pam(MCHPCIState *mch)
     memory_region_transaction_begin();
     for (i = 0; i < 13; i++) {
         pam_update(&mch->pam_regions[i], i,
-                   pd->config[MCH_HOST_BRIDGE_PAM0 + (DIV_ROUND_UP(i, 2))]);
+                   pd->config[MCH_HOST_BRIDGE_PAM0 + DIV_ROUND_UP(i, 2)]);
     }
     memory_region_transaction_commit();
 }