Tag: 479432344420bc9a868088e346fecb6765e2b674

net/netlabel: Correct redundant test

Author: Julia Lawall <julia@diku.dk> entry was tested for NULL near the beginning of the function, followed by a return, and there is no intervening modification of its value. A simplified version of the semantic match that finds this problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // @r exists@ local idexpression x; expression E; position p1,p2; @@ if …

Continue reading