From c22c65b1d43173729371aa2c30e1fea98c019ea0 Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Tue, 31 Jul 2001 03:32:24 +0000 Subject: [PATCH] Quiet uninitialized variable warning (also a bug). --- sys/dev/ofw/ofw_console.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/ofw/ofw_console.c b/sys/dev/ofw/ofw_console.c index d2835ec67ed3..ff5bd3fe6943 100644 --- a/sys/dev/ofw/ofw_console.c +++ b/sys/dev/ofw/ofw_console.c @@ -159,6 +159,8 @@ ofw_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) int error; unit = minor(dev); + tp = ofw_tp; + if (unit != 0) { return (ENXIO); }