Tag: 76c317d6e5cb7f58541879006d39774596962715

HID: Move dereferences below a NULL test

Author: Julia Lawall <julia@diku.dk> If the NULL test is necessary, then the dereferences should be moved below the NULL test. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @@ type T; expression E,E1; identifier i,fld; statement S; @@ – T i = E->fld; + T i; … when != E=E1 when …

Continue reading