Tag: 59f65f495d0defb62032422d1adec841fc657213

IB/usnic: delete unneeded IS_ERR test

Author: Julia Lawall <Julia.Lawall@lip6.fr> kzalloc doesn’t return ERR_PTR, so there is no need to test for it. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,e; @@ * x = kzalloc(…) … when != x = e * IS_ERR_OR_NULL(x) // Signed-off-by: Julia Lawall Reviewed-by: Dave Goodell Signed-off-by: Doug Ledford …

Continue reading