Deleted Added
full compact
usb_process.c (193045) usb_process.c (193074)
1/* $FreeBSD: head/sys/dev/usb/usb_process.c 193045 2009-05-29 18:46:57Z thompsa $ */
1/* $FreeBSD: head/sys/dev/usb/usb_process.c 193074 2009-05-30 00:22:57Z thompsa $ */
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 228 unchanged lines hidden (view full) ---

238 * at a time. The message that was queued is returned.
239 *------------------------------------------------------------------------*/
240void *
241usb2_proc_msignal(struct usb_process *up, void *_pm0, void *_pm1)
242{
243 struct usb_proc_msg *pm0 = _pm0;
244 struct usb_proc_msg *pm1 = _pm1;
245 struct usb_proc_msg *pm2;
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 228 unchanged lines hidden (view full) ---

238 * at a time. The message that was queued is returned.
239 *------------------------------------------------------------------------*/
240void *
241usb2_proc_msignal(struct usb_process *up, void *_pm0, void *_pm1)
242{
243 struct usb_proc_msg *pm0 = _pm0;
244 struct usb_proc_msg *pm1 = _pm1;
245 struct usb_proc_msg *pm2;
246 size_t d;
246 usb_size_t d;
247 uint8_t t;
248
249 /* check if gone, return dummy value */
250 if (up->up_gone)
251 return (_pm0);
252
253 mtx_assert(up->up_mtx, MA_OWNED);
254

--- 172 unchanged lines hidden ---
247 uint8_t t;
248
249 /* check if gone, return dummy value */
250 if (up->up_gone)
251 return (_pm0);
252
253 mtx_assert(up->up_mtx, MA_OWNED);
254

--- 172 unchanged lines hidden ---