OSDN Git Service

xf86drm: Fold drmDevice processing into process_device() helper
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 15 May 2018 14:02:52 +0000 (15:02 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 Jul 2018 15:24:26 +0000 (16:24 +0100)
commitf808fee90dba88d7bb1f2e8091377e4878ad5a4a
treee014d41f7ec0570b30f5806bcf8d6d9311d0e3f0
parent56e72d3f2e6d6929433574aaf9fbb422f54d8646
xf86drm: Fold drmDevice processing into process_device() helper

Don't duplicate the nearly identical code across the two call sites.
It improves legibility and the diff stat seems nice.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
xf86drm.c