cfi: clean up empty lines in .c and .h files

This commit is contained in:
Mateusz Guzik 2020-09-01 22:10:34 +00:00
parent 9c0df1da91
commit 0979589188
3 changed files with 1 additions and 6 deletions

@ -72,7 +72,6 @@ static device_method_t cfi_nexus_methods[] = {
DEVMETHOD(device_probe, cfi_nexus_probe),
DEVMETHOD(device_attach, cfi_nexus_attach),
DEVMETHOD(device_detach, cfi_detach),
{0, 0}
};

@ -162,7 +162,7 @@ uint8_t
cfi_read_qry(struct cfi_softc *sc, u_int ofs)
{
uint8_t val;
cfi_write(sc, CFI_QRY_CMD_ADDR * sc->sc_width, CFI_QRY_CMD_DATA);
val = cfi_read(sc, ofs * sc->sc_width);
cfi_reset_default(sc);
@ -751,12 +751,10 @@ cfi_write_block(struct cfi_softc *sc)
/* Fall through to single word case */
break;
}
}
/* Write the block one byte/word at a time. */
for (i = 0; i < sc->sc_wrbufsz; i += sc->sc_width) {
/* Avoid writing unless we are actually changing bits */
if (!neederase) {
switch (sc->sc_width) {

@ -309,7 +309,6 @@ cfi_disk_getattr(struct bio *bp)
return (0);
}
static void
cfi_disk_strategy(struct bio *bp)
{
@ -350,7 +349,6 @@ static device_method_t cfi_disk_methods[] = {
DEVMETHOD(device_probe, cfi_disk_probe),
DEVMETHOD(device_attach, cfi_disk_attach),
DEVMETHOD(device_detach, cfi_disk_detach),
{ 0, 0 }
};
static driver_t cfi_disk_driver = {