Julia Lawall bcf4d812e6 drivers/net: Correct NULL test
Test the value that was just allocated rather than the previously tested one.

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

// <smpl>
@r@
expression *x;
expression e;
identifier l;
@@

if (x == NULL || ...) {
    ... when forall
    return ...; }
... when != goto l;
    when != x = e
    when != &x
*x == NULL
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-02-08 22:44:18 -08:00
..
2010-01-07 01:07:30 -08:00
2010-01-03 21:42:49 -08:00
2010-02-08 22:37:24 -08:00
2010-01-03 21:42:50 -08:00
2010-02-03 19:17:17 -08:00
2009-12-15 08:53:25 -08:00
2010-02-08 22:44:18 -08:00
2009-11-05 20:00:41 -08:00
2009-11-05 20:00:29 -08:00
2009-11-06 20:26:09 -08:00
2009-12-15 08:53:25 -08:00
2009-11-11 19:22:21 -08:00
2009-11-20 15:35:04 -08:00
2010-01-03 21:42:52 -08:00
2009-12-15 08:53:25 -08:00
2010-01-03 22:06:15 -08:00
2010-02-03 18:34:28 -08:00
2009-10-29 22:57:27 -07:00
2009-12-11 16:16:33 -08:00
2010-01-13 17:18:54 -08:00
2010-01-13 17:18:54 -08:00
2009-12-26 20:24:44 -08:00
2009-11-26 15:51:29 -08:00