kernels/linux-2.4.0/drivers/usb/serial/usb-serial.h
/* Inline functions to check the sanity of a pointer that is passed to us */
Inline functions to check the sanity of a pointer that is passed to us
Inline functions to check the sanity of a pointer that is passed to us
static inline int serial_paranoia_check (struct usb_serial *serial, const char *function)
{
	if (!serial) {
		dbg("%s - serial == NULL", function);
		return -1;
	}
	if (serial->magic != USB_SERIAL_MAGIC) {
		dbg("%s - bad magic number for serial", function);
		return -1;
	}
	if (!serial->type) {
		dbg("%s - serial->type == NULL!", function);
		return -1;
	}
	return 0;
}
static inline int serial_paranoia_check ( struct usb_serial * serial , const char * function ) { if ( ! serial ) { dbg ( " " , function ) ; return -1 ; } if ( serial -> magic != USB_SERIAL_MAGIC ) { dbg ( " " , function ) ; return -1 ; } if ( ! serial -> type ) { dbg ( " " , function ) ; return -1 ; } return 0 ; }
Inline functions to check the sanity of a pointer that is passed to us
Inline functions to check the sanity of a pointer that is passed to us