check that adapter->get_edid is non-NULL
This commit is contained in:
parent
ef429417b2
commit
015e21571c
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ grub_cmd_videoinfo (grub_command_t cmd __attribute__ ((unused)),
|
||||||
|
|
||||||
adapter->iterate (hook);
|
adapter->iterate (hook);
|
||||||
|
|
||||||
if (adapter->get_edid (&edid_info) == GRUB_ERR_NONE)
|
if (adapter->get_edid && adapter->get_edid (&edid_info) == GRUB_ERR_NONE)
|
||||||
print_edid (&edid_info);
|
print_edid (&edid_info);
|
||||||
else
|
else
|
||||||
grub_errno = GRUB_ERR_NONE;
|
grub_errno = GRUB_ERR_NONE;
|
||||||
|
|
Loading…
Reference in a new issue