usbatm cxacru.c,1.11,1.12
kagan at infradead.org
kagan at infradead.org
Thu Feb 10 16:53:25 EST 2005
Update of /home/cvs/usbatm
In directory phoenix.infradead.org:/tmp/cvs-serv4552
Modified Files:
cxacru.c
Log Message:
No need to check for NULL
Index: cxacru.c
===================================================================
RCS file: /home/cvs/usbatm/cxacru.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- cxacru.c 8 Feb 2005 12:52:41 -0000 1.11
+++ cxacru.c 10 Feb 2005 21:53:22 -0000 1.12
@@ -743,14 +743,10 @@
return 0;
fail:
- if(instance->snd_buf)
- free_page((unsigned long) instance->snd_buf);
- if(instance->rcv_buf)
- free_page((unsigned long) instance->rcv_buf);
- if(instance->snd_urb)
- usb_free_urb(instance->snd_urb);
- if(instance->rcv_urb)
- usb_free_urb(instance->rcv_urb);
+ free_page((unsigned long) instance->snd_buf);
+ free_page((unsigned long) instance->rcv_buf);
+ usb_free_urb(instance->snd_urb);
+ usb_free_urb(instance->rcv_urb);
kfree(instance);
return ret;
More information about the Usbatm-commits
mailing list