akaros/scripts/spatch/remove_netif.cocci
<<
>>
Prefs
   1// struct ether->netif.whatever -> ether->whatever
   2@@
   3identifier E;
   4identifier A;
   5@@
   6-E->netif.A
   7+E->A
   8
   9@@
  10identifier E;
  11identifier A;
  12@@
  13-E.netif.A
  14+E.A
  15
  16@@
  17identifier E;
  18@@
  19-&E->netif
  20+E
  21
  22@@
  23@@
  24struct
  25-netif
  26+ether
  27