Julia Lawall 623d896b36 drivers/net/wan/dscc4.c: fix error return code
Move up the initialization of rc so that failure of pci_alloc_consistent
returns -ENOMEM as well.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier ret;
expression e1,e2;
@@

if (ret < 0)
 { ... return ret; }
 ... when != ret = e1
     when forall
*if(...)
 {
  ... when != ret = e2
* return ret;
 }
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-20 02:33:21 -07:00
..
2012-04-14 15:29:02 -04:00
2011-06-27 00:09:46 -07:00
2012-03-28 18:30:03 +01:00
2010-06-03 03:18:23 -07:00
2011-09-16 19:20:20 -04:00
2012-03-28 18:30:03 +01:00
2011-06-27 00:09:47 -07:00