/[orinoco]/orinoco/orinoco_cs.c
ViewVC logotype

Diff of /orinoco/orinoco_cs.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by dgibson, Mon Oct 20 07:14:02 2003 UTC revision 1.9 by dgibson, Tue Oct 21 05:46:31 2003 UTC
# Line 231  orinoco_cs_attach(void) Line 231  orinoco_cs_attach(void)
231   * are freed.  Otherwise, the structures will be freed when the device   * are freed.  Otherwise, the structures will be freed when the device
232   * is released.   * is released.
233   */   */
234  static void  static void orinoco_cs_detach(dev_link_t * link)
 orinoco_cs_detach(dev_link_t * link)  
235  {  {
236          dev_link_t **linkp;          dev_link_t **linkp;
237          struct net_device *dev = link->priv;          struct net_device *dev = link->priv;
# Line 241  orinoco_cs_detach(dev_link_t * link) Line 240  orinoco_cs_detach(dev_link_t * link)
240          for (linkp = &dev_list; *linkp; linkp = &(*linkp)->next)          for (linkp = &dev_list; *linkp; linkp = &(*linkp)->next)
241                  if (*linkp == link)                  if (*linkp == link)
242                          break;                          break;
243          if (*linkp == NULL) {  
244                  BUG();          BUG_ON(*linkp == NULL);
                 return;  
         }  
245    
246          if (link->state & DEV_CONFIG)          if (link->state & DEV_CONFIG)
247                  orinoco_cs_release(link);                  orinoco_cs_release(link);

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26