svn commit: r365217 - head/sys/dev/cfi
Mateusz Guzik
mjg at FreeBSD.org
Tue Sep 1 22:10:38 UTC 2020
Author: mjg
Date: Tue Sep 1 22:10:34 2020
New Revision: 365217
URL: https://svnweb.freebsd.org/changeset/base/365217
Log:
cfi: clean up empty lines in .c and .h files
Modified:
head/sys/dev/cfi/cfi_bus_nexus.c
head/sys/dev/cfi/cfi_core.c
head/sys/dev/cfi/cfi_disk.c
Modified: head/sys/dev/cfi/cfi_bus_nexus.c
==============================================================================
--- head/sys/dev/cfi/cfi_bus_nexus.c Tue Sep 1 22:10:24 2020 (r365216)
+++ head/sys/dev/cfi/cfi_bus_nexus.c Tue Sep 1 22:10:34 2020 (r365217)
@@ -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}
};
Modified: head/sys/dev/cfi/cfi_core.c
==============================================================================
--- head/sys/dev/cfi/cfi_core.c Tue Sep 1 22:10:24 2020 (r365216)
+++ head/sys/dev/cfi/cfi_core.c Tue Sep 1 22:10:34 2020 (r365217)
@@ -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) {
Modified: head/sys/dev/cfi/cfi_disk.c
==============================================================================
--- head/sys/dev/cfi/cfi_disk.c Tue Sep 1 22:10:24 2020 (r365216)
+++ head/sys/dev/cfi/cfi_disk.c Tue Sep 1 22:10:34 2020 (r365217)
@@ -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 = {
More information about the svn-src-all
mailing list