wcmOpen() has no path where it can return Success and the fd is -1.

Signed-off-by: Peter Hutterer <[email protected]>
---
 src/xf86Wacom.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/xf86Wacom.c b/src/xf86Wacom.c
index 5165771..f8bc54f 100644
--- a/src/xf86Wacom.c
+++ b/src/xf86Wacom.c
@@ -907,8 +907,7 @@ static int wcmDevOpen(DeviceIntPtr pWcm)
        /* open file, if not already open */
        if (common->fd_refs == 0)
        {
-               if ((wcmOpen (local) != Success) || (local->fd < 0) ||
-                       !common->wcmDevice)
+               if ((wcmOpen (local) != Success) || !common->wcmDevice)
                {
                        DBG(1, priv, "Failed to open "
                                "device (fd=%d)\n", local->fd);
-- 
1.7.0.1


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to