fix a GCC uninitialised variable warning only seen at -O3.
This commit is contained in:
parent
7595743fb0
commit
daf321dbca
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: com.c,v 1.250 2006/07/22 09:59:24 elad Exp $ */
|
/* $NetBSD: com.c,v 1.251 2006/08/08 10:32:09 mrg Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998, 1999, 2004 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998, 1999, 2004 The NetBSD Foundation, Inc.
|
||||||
@ -73,7 +73,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.250 2006/07/22 09:59:24 elad Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.251 2006/08/08 10:32:09 mrg Exp $");
|
||||||
|
|
||||||
#include "opt_com.h"
|
#include "opt_com.h"
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
@ -2458,6 +2458,7 @@ comcnattach(bus_space_tag_t iot, bus_addr_t iobase, int rate, int frequency,
|
|||||||
{
|
{
|
||||||
struct com_regs regs;
|
struct com_regs regs;
|
||||||
|
|
||||||
|
memset(®s, 0, sizeof regs);
|
||||||
regs.cr_iot = iot;
|
regs.cr_iot = iot;
|
||||||
regs.cr_iobase = iobase;
|
regs.cr_iobase = iobase;
|
||||||
regs.cr_nports = COM_NPORTS;
|
regs.cr_nports = COM_NPORTS;
|
||||||
|
Loading…
Reference in New Issue
Block a user