nvram2env: clean up empty lines in .c and .h files
This commit is contained in:
parent
cec3c5649c
commit
d6d2fd45b9
@ -87,7 +87,6 @@ nvram2env_probe(device_t dev)
|
||||
&sc->flags) != 0 || sc->flags == 0)
|
||||
sc->flags = NVRAM_FLAGS_GENERIC;
|
||||
|
||||
|
||||
for (i = 0; i < 2; i ++)
|
||||
{
|
||||
switch (i) {
|
||||
@ -160,7 +159,6 @@ static uint32_t read_4(struct nvram2env_softc * sc, int offset)
|
||||
return (bus_space_read_4(sc->bst, sc->bsh, offset));
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
nvram2env_attach(device_t dev)
|
||||
{
|
||||
@ -187,10 +185,8 @@ nvram2env_attach(device_t dev)
|
||||
|
||||
size = (size > sc->maxsize)?sc->maxsize:size;
|
||||
|
||||
|
||||
if (sig == sc->sig || (sc->flags & NVRAM_FLAGS_UBOOT))
|
||||
{
|
||||
|
||||
/* align size to 32bit size*/
|
||||
size += 3;
|
||||
size &= ~3;
|
||||
@ -229,7 +225,6 @@ nvram2env_attach(device_t dev)
|
||||
/* iterate over buffer till end. tmp points to end of NVRAM */
|
||||
for ( ; pair < (char*)tmp;
|
||||
pair += strlen(pair) + strlen(value) + 2 ) {
|
||||
|
||||
if (!pair || (strlen(pair) == 0))
|
||||
break;
|
||||
|
||||
@ -266,7 +261,6 @@ nvram2env_attach(device_t dev)
|
||||
bootverbose = strtoul(value, 0, 0);
|
||||
if (strcmp(pair, "boothowto" ) == 0)
|
||||
boothowto = strtoul(value, 0, 0);
|
||||
|
||||
}
|
||||
free(nv, M_DEVBUF);
|
||||
}
|
||||
|
@ -27,7 +27,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
|
||||
#ifndef NVRAM2ENV_NVRAM2ENV_H_
|
||||
#define NVRAM2ENV_NVRAM2ENV_H_
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user