payloads: Drop unneeded empty lines
Change-Id: I6faeb7c783052edc4217d2d301dbb905e1fc6a19 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44605 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
This commit is contained in:
committed by
Michael Niewöhner
parent
99e0c7ddc1
commit
3ff7bcf10e
@@ -39,7 +39,6 @@
|
||||
|
||||
#include "ahci_private.h"
|
||||
|
||||
|
||||
#ifdef DEBUG_STATUS
|
||||
static inline u32 _ahci_clear_status(volatile u32 *const reg,
|
||||
const char *const r,
|
||||
@@ -64,7 +63,6 @@ static inline u32 _ahci_clear_status(volatile u32 *const reg)
|
||||
#define ahci_clear_status(p, r) _ahci_clear_status(&(p)->r)
|
||||
#endif
|
||||
|
||||
|
||||
static inline int ahci_port_is_active(const hba_port_t *const port)
|
||||
{
|
||||
return (port->sata_status & (HBA_PxSSTS_IPM_MASK | HBA_PxSSTS_DET_MASK))
|
||||
|
@@ -37,7 +37,6 @@
|
||||
|
||||
#include "ahci_private.h"
|
||||
|
||||
|
||||
ssize_t ahci_ata_read_sectors(ata_dev_t *const ata_dev,
|
||||
const lba_t start, size_t count,
|
||||
u8 *const buf)
|
||||
|
@@ -35,10 +35,8 @@
|
||||
#include <storage/ata.h>
|
||||
#include <storage/ahci.h>
|
||||
|
||||
|
||||
#include "ahci_private.h"
|
||||
|
||||
|
||||
ssize_t ahci_packet_read_cmd(atapi_dev_t *const _dev,
|
||||
const u8 *const cmd, const size_t cmdlen,
|
||||
u8 *const buf, const size_t buflen)
|
||||
|
@@ -37,7 +37,6 @@
|
||||
|
||||
#include "ahci_private.h"
|
||||
|
||||
|
||||
#ifdef DEBUG_STATUS
|
||||
static inline u32 _ahci_clear_status(volatile u32 *const reg,
|
||||
const char *const r,
|
||||
@@ -62,7 +61,6 @@ static inline u32 _ahci_clear_status(volatile u32 *const reg)
|
||||
#define ahci_clear_status(p, r) _ahci_clear_status(&(p)->r)
|
||||
#endif
|
||||
|
||||
|
||||
/** Give a buffer with even address. */
|
||||
static u8 *ahci_prdbuf_init(ahci_dev_t *const dev,
|
||||
u8 *const user_buf, const size_t len,
|
||||
|
@@ -120,7 +120,6 @@ typedef volatile struct {
|
||||
#define HBA_CTRL_INTR_EN (1 << 1)
|
||||
#define HBA_CTRL_RESET (1 << 0)
|
||||
|
||||
|
||||
typedef volatile struct {
|
||||
u8 dma_setup_fis[28];
|
||||
u8 _reserved0[4];
|
||||
@@ -229,5 +228,4 @@ ssize_t ahci_ata_read_sectors(ata_dev_t *const ata_dev,
|
||||
const lba_t start, size_t count,
|
||||
u8 *const buf);
|
||||
|
||||
|
||||
#endif /* _AHCI_PRIVATE_H */
|
||||
|
@@ -33,7 +33,6 @@
|
||||
|
||||
#include <storage/ata.h>
|
||||
|
||||
|
||||
/** Reads non-sector-aligned blocks of 512 bytes. */
|
||||
static ssize_t ata_read_unaligned(ata_dev_t *const dev,
|
||||
const lba_t blk_start, size_t blk_count,
|
||||
|
@@ -33,7 +33,6 @@
|
||||
#include <storage/ata.h>
|
||||
#include <storage/atapi.h>
|
||||
|
||||
|
||||
static int atapi_request_sense(atapi_dev_t *const dev)
|
||||
{
|
||||
u8 cdb[12] = { 0, };
|
||||
|
@@ -32,7 +32,6 @@
|
||||
#endif
|
||||
#include <storage/storage.h>
|
||||
|
||||
|
||||
static storage_dev_t **devices = NULL;
|
||||
static size_t devices_length = 0;
|
||||
static size_t dev_count = 0;
|
||||
|
Reference in New Issue
Block a user