From: Brian Paul Date: Mon, 25 Nov 2002 16:03:20 +0000 (+0000) Subject: added missing return fd (Alexander Stohr) X-Git-Tag: submit/1.0/20121108.012404~2450 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c869f4a1e59c4fa0bed5681cad5ad49e685603eb;p=profile%2Fivi%2Flibdrm.git added missing return fd (Alexander Stohr) --- diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c index 0532a1e..6c83066 100644 --- a/libdrm/xf86drm.c +++ b/libdrm/xf86drm.c @@ -245,6 +245,7 @@ static int drmOpenDevice(long dev, int minor) fd = open(buf, O_RDWR, 0); drmMsg("drmOpenDevice: open result is %d, (%s)\n", fd, fd < 0 ? strerror(errno) : "OK"); + if (fd >= 0) return fd; drmMsg("drmOpenDevice: Open failed\n"); remove(buf);