Re: diethotplug-0.4 utility patch

From: David Jez
Date: Sun Oct 26 2003 - 08:49:55 EST


> > > - for USB: matching by vendor & class, not only by vendor (-ENODEV bug)
> >
> > Can you split this patch out? It looks useful.
> of course
--
-------------------------------------------------------
David "Dave" Jez Brno, CZ, Europe
E-mail: dave.jez@xxxxxxxxx
PGP key: finger xjezda00@xxxxxxxxxxxxxxxx
---------=[ ~EOF ]=------------------------------------
diff -urN diethotplug-0.4.orig/ieee1394.c diethotplug-0.4/ieee1394.c
--- diethotplug-0.4.orig/ieee1394.c Wed Jan 9 20:57:29 2002
+++ diethotplug-0.4/ieee1394.c Sat Oct 25 20:36:12 2003
@@ -75,7 +75,7 @@
return retval;
}

- return -ENODEV;
+ return 0;
}


diff -urN diethotplug-0.4.orig/usb.c diethotplug-0.4/usb.c
--- diethotplug-0.4.orig/usb.c Wed Jan 9 20:57:29 2002
+++ diethotplug-0.4/usb.c Sat Oct 25 20:36:07 2003
@@ -84,7 +84,7 @@
}
}

- return -ENODEV;
+ return 0;
}


@@ -121,7 +121,7 @@
}
}

- return -ENODEV;
+ return 0;
}


@@ -158,7 +158,7 @@
}
}

- return -ENODEV;
+ return 0;
}