summaryrefslogtreecommitdiffstats
path: root/sys/dev/smbus
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1998-12-10 02:31:08 +0000
committerarchie <archie@FreeBSD.org>1998-12-10 02:31:08 +0000
commitb114eb4c1b509b28b123072cbfa08b04d72a7fd0 (patch)
tree86b8212567632b4dab81c64d1551993c33f58515 /sys/dev/smbus
parent4dc7618636fefe45efae135ba919a3f046ab88a9 (diff)
downloadFreeBSD-src-b114eb4c1b509b28b123072cbfa08b04d72a7fd0.zip
FreeBSD-src-b114eb4c1b509b28b123072cbfa08b04d72a7fd0.tar.gz
Eliminate compiler warning.
Diffstat (limited to 'sys/dev/smbus')
-rw-r--r--sys/dev/smbus/smbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/smbus/smbus.c b/sys/dev/smbus/smbus.c
index 03c8e2f3..526cb1f 100644
--- a/sys/dev/smbus/smbus.c
+++ b/sys/dev/smbus/smbus.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: smbus.c,v 1.3 1998/11/22 22:01:42 nsouch Exp $
+ * $Id: smbus.c,v 1.4 1998/12/07 21:58:17 archie Exp $
*
*/
#include <sys/param.h>
@@ -107,7 +107,6 @@ smbus_probe(device_t dev)
static int
smbus_attach(device_t dev)
{
- device_t child;
#if 0
struct smbus_device *smbdev;
#endif
@@ -119,6 +118,7 @@ smbus_attach(device_t dev)
/* probe known devices */
for (smbdev = smbus_children; smbdev->smbd_name; smbdev++) {
+ device_t child;
child = device_add_child(dev, smbdev->smbd_name, -1, smbdev);
device_set_desc(child, smbdev->smbd_desc);
OpenPOWER on IntegriCloud