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;
|
||||
device_t dev = devinfo->dev;
|
||||
uint8_t *sad;
|
||||
int len, mnl, i, sadc, fmt;
|
||||
int mnl, i, sadc, fmt;
|
||||
|
||||
if (w->eld == NULL || w->eld_len < 4)
|
||||
return;
|
||||
@ -614,7 +614,6 @@ hdaa_eld_dump(struct hdaa_widget *w)
|
||||
w->nid, w->eld[0] >> 3, w->eld[2]);
|
||||
if ((w->eld[0] >> 3) != 0x02)
|
||||
return;
|
||||
len = min(w->eld_len, (u_int)w->eld[2] * 4);
|
||||
mnl = w->eld[4] & 0x1f;
|
||||
device_printf(dev,
|
||||
"ELD nid=%d: CEA_EDID_Ver=%u MNL=%u\n",
|
||||
|
Loading…
Reference in New Issue
Block a user