owc_gpiobus: small formatting cleanup

MFC after:	1 week
This commit is contained in:
Andriy Gapon 2019-07-10 12:40:07 +00:00
parent e2fba140a8
commit 01f1fff003
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349883

View File

@ -191,7 +191,7 @@ owc_gpiobus_write_one(device_t dev, struct ow_timing *t)
sc = device_get_softc(dev);
error = GETBUS(sc);
if (error != 0)
return error;
return (error);
critical_enter();
@ -208,7 +208,7 @@ owc_gpiobus_write_one(device_t dev, struct ow_timing *t)
RELBUS(sc);
return 0;
return (0);
}
/*
@ -232,7 +232,7 @@ owc_gpiobus_write_zero(device_t dev, struct ow_timing *t)
sc = device_get_softc(dev);
error = GETBUS(sc);
if (error != 0)
return error;
return (error);
critical_enter();
@ -249,7 +249,7 @@ owc_gpiobus_write_zero(device_t dev, struct ow_timing *t)
RELBUS(sc);
return 0;
return (0);
}
/*
@ -277,7 +277,7 @@ owc_gpiobus_read_data(device_t dev, struct ow_timing *t, int *bit)
sc = device_get_softc(dev);
error = GETBUS(sc);
if (error != 0)
return error;
return (error);
/* Force low for t_lowr microseconds */
then = sbinuptime();
@ -310,7 +310,7 @@ owc_gpiobus_read_data(device_t dev, struct ow_timing *t, int *bit)
RELBUS(sc);
return 0;
return (error);
}
/*
@ -338,8 +338,7 @@ owc_gpiobus_reset_and_presence(device_t dev, struct ow_timing *t, int *bit)
sc = device_get_softc(dev);
error = GETBUS(sc);
if (error != 0)
return error;
return (error);
/*
* Read the current state of the bus. The steady state of an idle bus is
@ -353,7 +352,7 @@ owc_gpiobus_reset_and_presence(device_t dev, struct ow_timing *t, int *bit)
if (buf == 0) {
*bit = -1;
RELBUS(sc);
return EIO;
return (EIO);
}
critical_enter();
@ -384,12 +383,12 @@ owc_gpiobus_reset_and_presence(device_t dev, struct ow_timing *t, int *bit)
if (buf == 0) {
*bit = -1;
RELBUS(sc);
return EIO;
return (EIO);
}
RELBUS(sc);
return 0;
return (0);
}
static devclass_t owc_gpiobus_devclass;