added missing return fd (Alexander Stohr)

This commit is contained in:
Brian Paul 2002-11-25 16:02:43 +00:00
parent 683fe4276a
commit e04ed6376b

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