Fix use of uninitialized variable.

I don't know how gcc didn't catch this.  This was caught during test building
with clang.
This commit is contained in:
Justin Hibbits 2017-01-22 05:49:43 +00:00
parent a2d74cc30b
commit 5c1f5ea426
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312613

View File

@ -344,7 +344,7 @@ diu_init(struct diu_softc *sc)
static int
diu_attach(device_t dev)
{
struct edid_info *edid;
struct edid_info edid;
struct diu_softc *sc;
const struct videomode *videomode;
void *edid_cells;
@ -384,7 +384,7 @@ diu_attach(device_t dev)
}
}
if (edid_cells != NULL) {
if (edid_parse(edid_cells, edid) != 0) {
if (edid_parse(edid_cells, &edid) != 0) {
device_printf(dev, "Error parsing EDID\n");
OF_prop_free(edid_cells);
return (ENXIO);