static inline void __init fs_subset_descriptors(void)
{
#ifdef DEV_CONFIG_SUBSET
- fs_eth_function[0] = (struct usb_descriptor_header *) &subset_data_intf;
- fs_eth_function[1] = (struct usb_descriptor_header *) &fs_source_desc;
- fs_eth_function[2] = (struct usb_descriptor_header *) &fs_sink_desc;
- fs_eth_function[3] = NULL;
+ fs_eth_function[1] = (struct usb_descriptor_header *) &subset_data_intf;
+ fs_eth_function[2] = (struct usb_descriptor_header *) &fs_source_desc;
+ fs_eth_function[3] = (struct usb_descriptor_header *) &fs_sink_desc;
- fs_eth_function[4] = 0;
++ fs_eth_function[4] = NULL;
#else
- fs_eth_function[0] = NULL;
- fs_eth_function[1] = 0;
++ fs_eth_function[1] = NULL;
#endif
}
static inline void __init hs_subset_descriptors(void)
{
#ifdef DEV_CONFIG_SUBSET
- hs_eth_function[0] = (struct usb_descriptor_header *) &subset_data_intf;
- hs_eth_function[1] = (struct usb_descriptor_header *) &fs_source_desc;
- hs_eth_function[2] = (struct usb_descriptor_header *) &fs_sink_desc;
- hs_eth_function[3] = NULL;
+ hs_eth_function[1] = (struct usb_descriptor_header *) &subset_data_intf;
+ hs_eth_function[2] = (struct usb_descriptor_header *) &fs_source_desc;
+ hs_eth_function[3] = (struct usb_descriptor_header *) &fs_sink_desc;
- hs_eth_function[4] = 0;
++ hs_eth_function[4] = NULL;
#else
- hs_eth_function[0] = NULL;
- hs_eth_function[1] = 0;
++ hs_eth_function[1] = NULL;
#endif
}
Init and Cleanup this driver (Main Functions)
*************************************************************************/
-#define try(A) if ((A) == 0) goto cleanup_on_fail;
+#define try(A) if (!(A)) goto cleanup_on_fail;
- #define try_free_mem(A) if (A) { kfree (A); A=NULL; }
- #define try_free_urb(A) if (A) { usb_free_urb (A); A=NULL; }
static int __init usb_mdc800_init (void)
{
/*
* auerswald.c -- Auerswald PBX/System Telephone usb driver.
*
-- * Copyright (C) 2001 Wolfgang Mües (wolfgang@iksw-muees.de)
++ * Copyright (C) 2001 Wolfgang Mües (wolfgang@iksw-muees.de)
*
* Very much code of this driver is borrowed from dabusb.c (Deti Fliegl)
* and from the USB Skeleton driver (Greg Kroah-Hartman). Thank you.
/*-------------------------------------------------------------------*/
/* Version Information */
#define DRIVER_VERSION "0.9.11"
--#define DRIVER_AUTHOR "Wolfgang Mües <wolfgang@iksw-muees.de>"
++#define DRIVER_AUTHOR "Wolfgang Mües <wolfgang@iksw-muees.de>"
#define DRIVER_DESC "Auerswald PBX/System Telephone usb driver"
/*-------------------------------------------------------------------*/