summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-02-27 23:59:35 +0000
committerpeter <peter@FreeBSD.org>2002-02-27 23:59:35 +0000
commitffa3ceca95f486ed2c1215fdc5e2f1b4d88c50c9 (patch)
tree10ad0fff9975936ffd46e56b1819890999aa72ae /sys/dev/twe
parent91d8b9ecd3d0ab3daac927861b5cff6841fa416c (diff)
downloadFreeBSD-src-ffa3ceca95f486ed2c1215fdc5e2f1b4d88c50c9.zip
FreeBSD-src-ffa3ceca95f486ed2c1215fdc5e2f1b4d88c50c9.tar.gz
Fix some unused warnings. One function is only used if
TWE_SHUTDOWN_NOTIFICATION is defined, the other two are never used.
Diffstat (limited to 'sys/dev/twe')
-rw-r--r--sys/dev/twe/twe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/twe/twe.c b/sys/dev/twe/twe.c
index 73717bf..a8d7164 100644
--- a/sys/dev/twe/twe.c
+++ b/sys/dev/twe/twe.c
@@ -46,9 +46,13 @@ static int twe_get_param_2(struct twe_softc *sc, int table_id, int param_id, u_i
static int twe_get_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t *result);
static void *twe_get_param(struct twe_softc *sc, int table_id, int parameter_id, size_t size,
void (* func)(struct twe_request *tr));
+#ifdef TWE_SHUTDOWN_NOTIFICATION
static int twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value);
+#endif
+#if 0
static int twe_set_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t value);
static int twe_set_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t value);
+#endif
static int twe_set_param(struct twe_softc *sc, int table_id, int param_id, int param_size,
void *data);
static int twe_init_connection(struct twe_softc *sc, int mode);
@@ -714,12 +718,15 @@ err:
/********************************************************************************
* Set integer parameter table entries.
*/
+#ifdef TWE_SHUTDOWN_NOTIFICATION
static int
twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value)
{
return(twe_set_param(sc, table_id, param_id, sizeof(value), &value));
}
+#endif
+#if 0
static int
twe_set_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t value)
{
@@ -731,6 +738,7 @@ twe_set_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t valu
{
return(twe_set_param(sc, table_id, param_id, sizeof(value), &value));
}
+#endif
/********************************************************************************
* Perform a TWE_OP_SET_PARAM command, returns nonzero on error.
OpenPOWER on IntegriCloud