xserver/hw/xfree86/drivers
Konstantin Kharlamov c720495305 modesetting: simplify bailing on calloc fail
The "done" label restores crtc-> {x,y,rotation,mode}, frees output_id.
Doing the calloc() before writing to those values frees us from
necessity to restore them if calloc fails, and allows to merge
"if (mode)" block.

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-12-18 08:52:55 +10:00
..
modesetting modesetting: simplify bailing on calloc fail 2017-12-18 08:52:55 +10:00
Makefile.am modesetting: Connect the driver to the build. 2014-09-16 16:28:42 -07:00