added missing return fd (Alexander Stohr)

This commit is contained in:
Brian Paul 2002-11-25 16:03:20 +00:00
parent a654424ca1
commit c869f4a1e5

View file

@ -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);