drivers: Get rid of unnecessary blank lines {before,after} brace

Change-Id: Ic1b38e93d919c1286a8d130700a4a2bfd6b55258
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61557
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
Elyes HAOUAS
2022-02-02 18:56:46 +01:00
committed by Felix Singer
parent 8765c09a63
commit 55be012ffd
22 changed files with 1 additions and 29 deletions

View File

@@ -349,7 +349,6 @@ static AGESA_STATUS agesa_LocateBuffer(BIOS_HEAP_MANAGER *BiosHeapBasePtr,
AllocParams->BufferLength = AllocNodePtr->BufferSize; AllocParams->BufferLength = AllocNodePtr->BufferSize;
return AGESA_SUCCESS; return AGESA_SUCCESS;
} }
AGESA_STATUS HeapManagerCallout(UINT32 Func, UINTN Data, VOID *ConfigPtr) AGESA_STATUS HeapManagerCallout(UINT32 Func, UINTN Data, VOID *ConfigPtr)

View File

@@ -159,7 +159,6 @@ static AGESA_STATUS romstage_dispatch(struct sysinfo *cb,
{ {
break; break;
} }
} }
return status; return status;
} }
@@ -222,7 +221,6 @@ static AGESA_STATUS ramstage_dispatch(struct sysinfo *cb,
{ {
break; break;
} }
} }
return status; return status;
} }

View File

@@ -146,7 +146,6 @@ static bool ast_launch_m68k(struct drm_device *dev)
data = ast_mindwm(ast, 0x1e6e2100) & 0x01; data = ast_mindwm(ast, 0x1e6e2100) & 0x01;
if (!data) { if (!data) {
if (ast->dp501_fw_addr) { if (ast->dp501_fw_addr) {
fw_addr = ast->dp501_fw_addr; fw_addr = ast->dp501_fw_addr;
len = 32*1024; len = 32*1024;

View File

@@ -26,7 +26,6 @@ static void ast_crtc_load_lut(struct drm_crtc *crtc)
/* FIXME: Gamma cor 2.6 ? */ /* FIXME: Gamma cor 2.6 ? */
for (int i = 0; i < 256; i++) for (int i = 0; i < 256; i++)
ast_load_palette_index(ast, i, i, i, i); ast_load_palette_index(ast, i, i, i, i);
} }
static bool ast_get_vbios_mode_info(struct drm_crtc *crtc, struct drm_display_mode *mode, static bool ast_get_vbios_mode_info(struct drm_crtc *crtc, struct drm_display_mode *mode,

View File

@@ -788,8 +788,8 @@ static void finetuneDQSI(struct ast_private *ast)
} }
reg_mcr18 = reg_mcr18 | (g_dqidly << 16) | (g_dqsip << 23); reg_mcr18 = reg_mcr18 | (g_dqidly << 16) | (g_dqsip << 23);
ast_moutdwm(ast, 0x1E6E0018, reg_mcr18); ast_moutdwm(ast, 0x1E6E0018, reg_mcr18);
} }
static bool cbr_dll2(struct ast_private *ast, struct ast2300_dram_param *param) static bool cbr_dll2(struct ast_private *ast, struct ast2300_dram_param *param)
{ {
u32 dllmin[2], dllmax[2], dlli, data, passcnt, retry = 0; u32 dllmin[2], dllmax[2], dlli, data, passcnt, retry = 0;
@@ -1085,7 +1085,6 @@ static void get_ddr3_info(struct ast_private *ast, struct ast2300_dram_param *pa
param->dram_config |= 0x0c; param->dram_config |= 0x0c;
break; break;
} }
} }
static void ddr3_init(struct ast_private *ast, struct ast2300_dram_param *param) static void ddr3_init(struct ast_private *ast, struct ast2300_dram_param *param)
@@ -1226,7 +1225,6 @@ ddr3_init_start:
ast_moutdwm(ast, 0x1E6E0050, 0x80000000); ast_moutdwm(ast, 0x1E6E0050, 0x80000000);
ast_moutdwm(ast, 0x1E6E0050, 0x00000000); ast_moutdwm(ast, 0x1E6E0050, 0x00000000);
#endif #endif
} }
static void get_ddr2_info(struct ast_private *ast, struct ast2300_dram_param *param) static void get_ddr2_info(struct ast_private *ast, struct ast2300_dram_param *param)
@@ -1617,7 +1615,6 @@ ddr2_init_start:
ast_moutdwm(ast, 0x1E6E0050, 0x80000000); ast_moutdwm(ast, 0x1E6E0050, 0x80000000);
ast_moutdwm(ast, 0x1E6E0050, 0x00000000); ast_moutdwm(ast, 0x1E6E0050, 0x00000000);
#endif #endif
} }
static void ast_post_chip_2300(struct drm_device *dev) static void ast_post_chip_2300(struct drm_device *dev)
@@ -1883,7 +1880,6 @@ static void reset_mmc_2500(struct ast_private *ast)
static void ddr3_init_2500(struct ast_private *ast, const u32 *ddr_table) static void ddr3_init_2500(struct ast_private *ast, const u32 *ddr_table)
{ {
ast_moutdwm(ast, 0x1E6E0004, 0x00000303); ast_moutdwm(ast, 0x1E6E0004, 0x00000303);
ast_moutdwm(ast, 0x1E6E0010, ddr_table[REGIDX_010]); ast_moutdwm(ast, 0x1E6E0010, ddr_table[REGIDX_010]);
ast_moutdwm(ast, 0x1E6E0014, ddr_table[REGIDX_014]); ast_moutdwm(ast, 0x1E6E0014, ddr_table[REGIDX_014]);

View File

@@ -52,7 +52,6 @@ int tis_open(void)
int tis_close(void) int tis_close(void)
{ {
if (tpm_is_open) { if (tpm_is_open) {
/* /*
* Do we need to do something here, like waiting for a * Do we need to do something here, like waiting for a
* transaction to stop? * transaction to stop?

View File

@@ -110,7 +110,6 @@ static int crb_probe(void)
*/ */
static uint8_t crb_activate_locality(void) static uint8_t crb_activate_locality(void)
{ {
uint8_t locality = (read8(CRB_REG(0, CRB_REG_LOC_STATE)) >> 2) & 0x07; uint8_t locality = (read8(CRB_REG(0, CRB_REG_LOC_STATE)) >> 2) & 0x07;
printk(BIOS_SPEW, "Active locality: %i\n", locality); printk(BIOS_SPEW, "Active locality: %i\n", locality);
@@ -174,7 +173,6 @@ static int crb_switch_to_ready(void)
*/ */
int tpm2_init(void) int tpm2_init(void)
{ {
if (crb_probe()) { if (crb_probe()) {
printk(BIOS_ERR, "TPM: Probe failed.\n"); printk(BIOS_ERR, "TPM: Probe failed.\n");
return -1; return -1;

View File

@@ -3,7 +3,6 @@
#include <acpi/acpi_device.h> #include <acpi/acpi_device.h>
struct drivers_generic_max98357a_config { struct drivers_generic_max98357a_config {
/* ACPI _HID */ /* ACPI _HID */
const char *hid; const char *hid;

View File

@@ -346,7 +346,6 @@ static int recv_data(struct tpm_chip *chip, uint8_t *buf, size_t count)
burstcnt); burstcnt);
if (rc == 0) if (rc == 0)
size += burstcnt; size += burstcnt;
} }
return size; return size;
} }

View File

@@ -375,7 +375,6 @@ static void ww_ring_init(unsigned int i2c_bus)
for (i = 0, ledc = lp55231s; for (i = 0, ledc = lp55231s;
i < WW_RING_NUM_LED_CONTROLLERS; i < WW_RING_NUM_LED_CONTROLLERS;
i++, ledc++) { i++, ledc++) {
ledc->i2c_bus = i2c_bus; ledc->i2c_bus = i2c_bus;
ledc->dev_addr = LP55231_I2C_BASE_ADDR + i; ledc->dev_addr = LP55231_I2C_BASE_ADDR + i;

View File

@@ -19,7 +19,6 @@ void fill_postcar_frame(struct postcar_frame *pcf)
* with different TSEG size configurations. */ * with different TSEG size configurations. */
top_of_ram = ALIGN_DOWN((uintptr_t)cbmem_top(), 8*MiB); top_of_ram = ALIGN_DOWN((uintptr_t)cbmem_top(), 8*MiB);
postcar_frame_add_mtrr(pcf, top_of_ram - 8*MiB, 16*MiB, MTRR_TYPE_WRBACK); postcar_frame_add_mtrr(pcf, top_of_ram - 8*MiB, 16*MiB, MTRR_TYPE_WRBACK);
} }
/* This is the romstage entry called from cpu/intel/car/romstage.c */ /* This is the romstage entry called from cpu/intel/car/romstage.c */

View File

@@ -134,7 +134,6 @@ struct hob_resource *find_resource_hob_by_guid(const struct hob_header *hob,
for (; hob->type != HOB_TYPE_END_OF_HOB_LIST; for (; hob->type != HOB_TYPE_END_OF_HOB_LIST;
hob = fsp_next_hob(hob)) { hob = fsp_next_hob(hob)) {
if (hob->type != HOB_TYPE_RESOURCE_DESCRIPTOR) if (hob->type != HOB_TYPE_RESOURCE_DESCRIPTOR)
continue; continue;
@@ -198,7 +197,6 @@ const void *fsp_find_extension_hob_by_guid(const uint8_t *guid, size_t *size)
for (; hob->type != HOB_TYPE_END_OF_HOB_LIST; for (; hob->type != HOB_TYPE_END_OF_HOB_LIST;
hob = fsp_next_hob(hob)) { hob = fsp_next_hob(hob)) {
if (hob->type != HOB_TYPE_GUID_EXTENSION) if (hob->type != HOB_TYPE_GUID_EXTENSION)
continue; continue;

View File

@@ -51,5 +51,4 @@ void fsp_print_header_info(const struct fsp_header *hdr)
printk(BIOS_SPEW, "\tNotify phase offset 0x%zx\n", printk(BIOS_SPEW, "\tNotify phase offset 0x%zx\n",
(size_t)hdr->notify_phase_entry_offset); (size_t)hdr->notify_phase_entry_offset);
} }
} }

View File

@@ -290,7 +290,6 @@ static inline bool uses_relative_vbt_addr(opregion_header_t *header)
static void opregion_add_ext_vbt(igd_opregion_t *opregion, uint8_t *ext_vbt, static void opregion_add_ext_vbt(igd_opregion_t *opregion, uint8_t *ext_vbt,
optionrom_vbt_t *vbt) optionrom_vbt_t *vbt)
{ {
opregion_header_t *header = &opregion->header; opregion_header_t *header = &opregion->header;
/* Copy VBT into extended VBT region (at offset 8 KiB) */ /* Copy VBT into extended VBT region (at offset 8 KiB) */
memcpy(ext_vbt, vbt, vbt->hdr_vbt_size); memcpy(ext_vbt, vbt, vbt->hdr_vbt_size);

View File

@@ -386,7 +386,6 @@ static void usb4_retimer_fill_ssdt(const struct device *dev)
acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON);
for (dfp_port = 0; dfp_port < DFP_NUM_MAX; dfp_port++) { for (dfp_port = 0; dfp_port < DFP_NUM_MAX; dfp_port++) {
if (!config->dfp[dfp_port].power_gpio.pin_count) { if (!config->dfp[dfp_port].power_gpio.pin_count) {
printk(BIOS_WARNING, "%s: No DFP%1d power GPIO for %s\n", printk(BIOS_WARNING, "%s: No DFP%1d power GPIO for %s\n",
__func__, dfp_port, dev_path(dev)); __func__, dfp_port, dev_path(dev));

View File

@@ -571,5 +571,4 @@ void print_fru_areas(struct fru_info_str *fru_info_str)
printk(BIOS_DEBUG, "chassis custom data %i: %s\n", count, printk(BIOS_DEBUG, "chassis custom data %i: %s\n", count,
*(chassis_info.chassis_custom + count)); *(chassis_info.chassis_custom + count));
} }
} }

View File

@@ -124,7 +124,6 @@ static void str2mac(const char *str, unsigned char *mac)
int acc = 0; int acc = 0;
do { do {
c = str[i]; c = str[i];
if ((c >= '0') && (c <= '9')) { if ((c >= '0') && (c <= '9')) {
acc *= 16; acc *= 16;

View File

@@ -267,7 +267,6 @@ void set_boot_successful(void)
/* If we are in normal mode set the boot count to 0 */ /* If we are in normal mode set the boot count to 0 */
if (byte & RTC_BOOT_NORMAL) if (byte & RTC_BOOT_NORMAL)
byte &= 0x0f; byte &= 0x0f;
} }
outb(byte, RTC_PORT(1)); outb(byte, RTC_PORT(1));

View File

@@ -169,7 +169,6 @@ static enum cb_err scan_end(struct region_device *store)
return CB_ERR; return CB_ERR;
return CB_SUCCESS; return CB_SUCCESS;
} }
/* /*
* Append data to region * Append data to region

View File

@@ -40,7 +40,6 @@ int tis_open(void)
int tis_close(void) int tis_close(void)
{ {
if (tpm_is_open) { if (tpm_is_open) {
/* /*
* Do we need to do something here, like waiting for a * Do we need to do something here, like waiting for a
* transaction to stop? * transaction to stop?

View File

@@ -581,7 +581,6 @@ void tpm_ppi_acpi_fill_ssdt(const struct device *dev)
found = true; found = true;
} }
} else { } else {
for (size_t i = 0; i < ARRAY_SIZE(tpm2_funcs); i++) { for (size_t i = 0; i < ARRAY_SIZE(tpm2_funcs); i++) {
ppib->func[tpm2_funcs[i]] = 1; ppib->func[tpm2_funcs[i]] = 1;
if (ppib->pprq == tpm2_funcs[i]) if (ppib->pprq == tpm2_funcs[i])

View File

@@ -42,7 +42,6 @@ struct ehci_caps {
/* Section 2.3 Host Controller Operational Registers */ /* Section 2.3 Host Controller Operational Registers */
struct ehci_regs { struct ehci_regs {
/* USBCMD: offset 0x00 */ /* USBCMD: offset 0x00 */
u32 command; u32 command;