swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 118f63b391eb35fc2b2686f80a68841c1bd5ad6e
parent d3cc348daaa0f1162ed6f28725c701e9f277a8ff
Author: Michael Forney <mforney@mforney.org>
Date:   Fri, 17 Jan 2014 19:03:23 -0800

Style

Diffstat:
Mlibswc/drm.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libswc/drm.c b/libswc/drm.c @@ -309,10 +309,9 @@ bool swc_drm_initialize(const char * seat_name) { const char * sysnum; char * end; + struct udev_device * drm_device; - struct udev_device * drm_device = find_primary_drm_device(seat_name); - - if (!drm_device) + if (!(drm_device = find_primary_drm_device(seat_name))) { printf("couldn't find drm device\n"); goto error0;