hdaa_eld_dump: eliminate write only variable len
Sponsored by: Netflix
This commit is contained in:
parent
8717135d37
commit
557627dda9
@ -605,7 +605,7 @@ hdaa_eld_dump(struct hdaa_widget *w)
|
|||||||
struct hdaa_devinfo *devinfo = w->devinfo;
|
struct hdaa_devinfo *devinfo = w->devinfo;
|
||||||
device_t dev = devinfo->dev;
|
device_t dev = devinfo->dev;
|
||||||
uint8_t *sad;
|
uint8_t *sad;
|
||||||
int len, mnl, i, sadc, fmt;
|
int mnl, i, sadc, fmt;
|
||||||
|
|
||||||
if (w->eld == NULL || w->eld_len < 4)
|
if (w->eld == NULL || w->eld_len < 4)
|
||||||
return;
|
return;
|
||||||
@ -614,7 +614,6 @@ hdaa_eld_dump(struct hdaa_widget *w)
|
|||||||
w->nid, w->eld[0] >> 3, w->eld[2]);
|
w->nid, w->eld[0] >> 3, w->eld[2]);
|
||||||
if ((w->eld[0] >> 3) != 0x02)
|
if ((w->eld[0] >> 3) != 0x02)
|
||||||
return;
|
return;
|
||||||
len = min(w->eld_len, (u_int)w->eld[2] * 4);
|
|
||||||
mnl = w->eld[4] & 0x1f;
|
mnl = w->eld[4] & 0x1f;
|
||||||
device_printf(dev,
|
device_printf(dev,
|
||||||
"ELD nid=%d: CEA_EDID_Ver=%u MNL=%u\n",
|
"ELD nid=%d: CEA_EDID_Ver=%u MNL=%u\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user