edid: use value returned from pruning duplicate modes
xf86PruneDuplicateModes is passed a linked list of modes, and after pruning the duplicate nodes, the new head of the list is returned. If the first element is removed, the head of the list will change and the returned value needs to be assigned. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103722 Thanks: John Lumby <johnlumby@hotmail.com> Signed-off-by: Jeff Smith <whydoubt@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
dd00e5466a
commit
9b7b8720eb
|
@ -1220,7 +1220,7 @@ xf86EdidMonitorSet(int scrnIndex, MonPtr Monitor, xf86MonPtr DDC)
|
|||
Monitor->Modes = Modes;
|
||||
}
|
||||
|
||||
xf86PruneDuplicateModes(Monitor->Modes);
|
||||
Monitor->Modes = xf86PruneDuplicateModes(Monitor->Modes);
|
||||
|
||||
/* Update pointer to last mode */
|
||||
for (Mode = Monitor->Modes; Mode && Mode->next; Mode = Mode->next) {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user