From 336f93ec0b7deeef1391729328d3793e9684ccd1 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 31 Jan 2007 16:24:52 +0000 Subject: the 666 class match code is handled below, and caused bad UDEV rules with vendor=0 and product=0. git-svn-id: https://svn.code.sf.net/p/gphoto/code/branches/libgphoto2-2_3/libgphoto2@9960 67ed7778-7388-44ab-90cf-0a291f65f57c --- packaging/generic/print-camera-list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c index d202edece..f35cf9f04 100644 --- a/packaging/generic/print-camera-list.c +++ b/packaging/generic/print-camera-list.c @@ -333,7 +333,7 @@ udev_camera_func (const func_params_t *params, | GP_USB_HOTPLUG_MATCH_PRODUCT_ID); usb_vendor = a->usb_vendor; usb_product = a->usb_product; - } else if ((a->usb_class) && (a->usb_class != 666)) { + } else if (a->usb_class) { class = a->usb_class; subclass = a->usb_subclass; proto = a->usb_protocol; @@ -446,7 +446,7 @@ udev_098_camera_func (const func_params_t *params, | GP_USB_HOTPLUG_MATCH_PRODUCT_ID); usb_vendor = a->usb_vendor; usb_product = a->usb_product; - } else if ((a->usb_class) && (a->usb_class != 666)) { + } else if (a->usb_class) { class = a->usb_class; subclass = a->usb_subclass; proto = a->usb_protocol; -- cgit v1.2.1