Tag: c1e3334fa4b2891752f1367b47a60209353ba2f5

drivers: net: cpsw: fix error return code

Author: Julia Lawall <julia.lawall@lip6.fr> Propagate the return value of platform_get_irq on failure. A simplified version of the semantic match that finds the two cases where no error code is returned at all is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } …

Continue reading