patch-2.4.8 linux/drivers/usb/se401.c
Next file: linux/drivers/usb/serial/empeg.c
Previous file: linux/drivers/usb/scanner.h
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Wed Jul 25 14:12:03 2001
- Orig file:
v2.4.7/linux/drivers/usb/se401.c
- Orig date:
Tue Jul 3 17:08:21 2001
diff -u --recursive --new-file v2.4.7/linux/drivers/usb/se401.c linux/drivers/usb/se401.c
@@ -486,12 +486,8 @@
/* irq handler for snapshot button */
static void se401_button_irq(struct urb *urb)
{
- struct usb_se401 *se401=urb->context;
+ struct usb_se401 *se401 = urb->context;
- if (!urb) {
- info("ohoh: null urb");
- return;
- }
if (!se401->dev) {
info("ohoh: device vapourished");
return;
@@ -505,17 +501,13 @@
static void se401_video_irq(struct urb *urb)
{
- struct usb_se401 *se401=urb->context;
- int length=urb->actual_length;
+ struct usb_se401 *se401 = urb->context;
+ int length = urb->actual_length;
/* ohoh... */
- if (!se401->streaming) {
- return;
- }
- if (!urb) {
- info ("ohoh: null urb");
+ if (!se401->streaming)
return;
- }
+
if (!se401->dev) {
info ("ohoh: device vapourished");
return;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)