Tag: 9ecab6e5bf87f96dc2fa89cc9e8d5576fbde4325

drivers/ide/{cs5530.c,sc1200.c}: Move a dereference below a NULL test

Author: Julia Lawall <julia@diku.dk> In each case, if the NULL test is necessary, then the dereference 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; identifier i,fld; statement S; @@ – T i = E->fld; + T i; … when …

Continue reading