Changeset 18959


Ignore:
Timestamp:
04/08/12 17:09:10 (14 months ago)
Author:
eko
Message:

correct strange code duplication. c/p error??

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/brcm/linux-2.6.23/brcm/shared/dbus_usb_linux.c

    r18958 r18959  
    25442544#endif /* USBOS_THREAD */ 
    25452545 
    2546 #ifdef USB_TRIGGER_DEBUG 
    2547 static bool 
    2548 dbus_usbos_ctl_send_debugtrig(usbos_info_t* usbinfo) 
    2549 { 
    2550         bootrom_id_t id; 
    2551  
    2552         if (usbinfo == NULL) 
    2553                 return FALSE; 
    2554  
    2555         id.chip = 0xDEAD; 
    2556  
    2557         dbus_usbos_dl_cmd(usbinfo, DL_DBGTRIG, &id, sizeof(bootrom_id_t)); 
    2558  
    2559         /* ignore the result for now */ 
    2560         return TRUE; 
    2561 } 
    2562 #endif /* USB_TRIGGER_DEBUG */ 
    2563         urb_req_t           *req = urb->context; 
    2564         usbos_info_t        *usbos_info = req->usbinfo; 
    2565         usbos_list_entry_t  *entry; 
    2566         unsigned long       flags; 
    2567         struct list_head    *cur; 
    2568  
    2569         spin_lock_irqsave(&usbos_info->usbos_list_lock, flags); 
    2570  
    2571         cur   = usbos_info->usbos_free_list.next; 
    2572         entry = list_entry(cur, struct usbos_list_entry, list); 
    2573  
    2574         /* detach this entry from the free list and prepare it insert it to use list */ 
    2575         list_del_init(cur); 
    2576  
    2577         if (entry) { 
    2578                 entry->urb_context = urb->context; 
    2579                 entry->urb_length  = urb->actual_length; 
    2580                 entry->urb_status  = urb->status; 
    2581  
    2582                 atomic_inc(&usbos_info->usbos_list_cnt); 
    2583                 list_add_tail(cur, &usbos_info->usbos_list); 
    2584         } 
    2585         else { 
    2586                 DBUSERR(("!!!!!!OUT OF MEMORY!!!!!!!\n")); 
    2587         } 
    2588  
    2589         spin_unlock_irqrestore(&usbos_info->usbos_list_lock, flags); 
    2590  
    2591         /* thread */ 
    2592         wake_up_interruptible(&usbos_info->usbos_queue_head); 
    2593  
    2594 } 
    2595  
    2596 #endif /* USBOS_THREAD */ 
    2597  
    2598 #ifdef USB_TRIGGER_DEBUG 
    25992546static bool 
    26002547dbus_usbos_ctl_send_debugtrig(usbos_info_t* usbinfo) 
Note: See TracChangeset for help on using the changeset viewer.