mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
Don't dereference an uninitialized pointer.
This commit is contained in:
parent
7c25496e63
commit
837d712d07
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156503
|
@ -179,8 +179,11 @@ exca_do_mem_map(struct exca_softc *sc, int win)
|
|||
struct mem_map_index_st *map;
|
||||
struct pccard_mem_handle *mem;
|
||||
uint32_t offset;
|
||||
#if 0
|
||||
int mem8 = (mem->kind == PCCARD_A_MEM_ATTR);
|
||||
mem8 = 1;
|
||||
#else
|
||||
int mem8 = 1;
|
||||
#endif
|
||||
|
||||
map = &mem_map_index[win];
|
||||
mem = &sc->mem[win];
|
||||
|
|
Loading…
Reference in a new issue