Coverity CID 2465: Fix uninitialized variable. XXX: cardbus_mapreg_map()

never fails (even when it does not find memory). Perhaps it should?
This commit is contained in:
christos 2006-04-14 20:07:37 +00:00
parent bb2402826a
commit aa3bd36319
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cardbus_map.c,v 1.18 2005/12/11 12:21:15 christos Exp $ */
/* $NetBSD: cardbus_map.c,v 1.19 2006/04/14 20:07:37 christos Exp $ */
/*
* Copyright (c) 1999 and 2000
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cardbus_map.c,v 1.18 2005/12/11 12:21:15 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: cardbus_map.c,v 1.19 2006/04/14 20:07:37 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -255,7 +255,7 @@ cardbus_mapreg_map(sc, func, reg, type, busflags, tagp, handlep, basep, sizep)
#if rbus
rbus_tag_t rbustag;
#endif
bus_space_handle_t handle;
bus_space_handle_t handle = 0;
bus_addr_t base;
bus_size_t size;
int flags;