northbridge/amd/amdfam10/conf.c: Remove extraneous parentheses

Remove extraneous parentheses around the comparison. Fix some
style while here.

Found-by: Clang
Change-Id: I882729b8fa9f32a3bb9b1524d4d8829cbb226b7d
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/7445
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Edward O'Callaghan 2014-11-12 17:42:52 +11:00
parent 08cd865760
commit bf26243a00
1 changed files with 73 additions and 76 deletions

View File

@ -637,19 +637,18 @@ static u32 get_ht_c_index(u32 nodeid, u32 linkn, sys_info_conf_t *sysinfo)
#endif #endif
tempreg = 3 | ((nodeid & 0x3f)<<2) | (linkn<<8); tempreg = 3 | ((nodeid & 0x3f)<<2) | (linkn<<8);
for (ht_c_index=0; ht_c_index<32; ht_c_index++) { for (ht_c_index=0; ht_c_index<32; ht_c_index++) {
if(((sysinfo->ht_c_conf_bus[ht_c_index] & 0xfff) == tempreg)){ if ((sysinfo->ht_c_conf_bus[ht_c_index] & 0xfff) == tempreg) {
return ht_c_index; return ht_c_index;
} }
} }
for (ht_c_index=0; ht_c_index<32; ht_c_index++) { for (ht_c_index=0; ht_c_index<32; ht_c_index++) {
if((sysinfo->ht_c_conf_bus[ht_c_index] == 0)){ if (sysinfo->ht_c_conf_bus[ht_c_index] == 0) {
return ht_c_index; return ht_c_index;
} }
} }
return -1; return -1;
} }
static void store_ht_c_conf_bus(u32 nodeid, u32 linkn, u32 ht_c_index, static void store_ht_c_conf_bus(u32 nodeid, u32 linkn, u32 ht_c_index,
@ -767,7 +766,6 @@ static void store_conf_mmio_addr(u32 nodeid, u32 linkn, u32 reg, u32 index,
static void set_io_addr_reg(device_t dev, u32 nodeid, u32 linkn, u32 reg, static void set_io_addr_reg(device_t dev, u32 nodeid, u32 linkn, u32 reg,
u32 io_min, u32 io_max) u32 io_min, u32 io_max)
{ {
u32 i; u32 i;
u32 tempreg; u32 tempreg;
#if CONFIG_EXT_CONF_SUPPORT #if CONFIG_EXT_CONF_SUPPORT
@ -812,11 +810,10 @@ static void set_io_addr_reg(device_t dev, u32 nodeid, u32 linkn, u32 reg,
set_addr_map_reg_4_6_in_one_node(j,cfg_map_dest, io_min, io_max, 4); set_addr_map_reg_4_6_in_one_node(j,cfg_map_dest, io_min, io_max, 4);
} }
#endif #endif
} }
static void set_mmio_addr_reg(u32 nodeid, u32 linkn, u32 reg, u32 index, u32 mmio_min, u32 mmio_max, u32 nodes) static void set_mmio_addr_reg(u32 nodeid, u32 linkn, u32 reg, u32 index, u32 mmio_min, u32 mmio_max, u32 nodes)
{ {
u32 i; u32 i;
u32 tempreg; u32 tempreg;
#if CONFIG_EXT_CONF_SUPPORT #if CONFIG_EXT_CONF_SUPPORT