Files
linux-apfs/drivers
Julia Lawall 70ec3bb8ea mtd: Use BLOCK_NIL consistently in NFTL/INFTL
Use BLOCK_NIL consistently rather than sometimes 0xffff and sometimes
BLOCK_NIL.

The semantic patch that finds this issue is below
(http://www.emn.fr/x-info/coccinelle/).  On the other hand, the changes
were made by hand, in part because drivers/mtd/inftlcore.c contains dead
code that causes spatch to ignore a relevant function.  Specifically, the
function INFTL_findwriteunit contains a do-while loop, but always takes a
return that leaves the loop on the first iteration.

// <smpl>
@r exists@
identifier f,C;
@@

f(...) { ... return C; }

@s@
identifier r.C;
expression E;
@@

@@
identifier r.f,r.C,I;
expression s.E;
@@

f(...) {
 <...
(
  I
|
- E
+ C
)
 ...>
}

// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2009-06-27 09:22:10 +01:00
..
2009-06-16 19:50:13 -07:00
2009-06-18 09:56:20 +02:00
2009-06-22 11:32:24 -07:00
2009-06-17 11:06:25 +01:00
2009-06-16 19:50:13 -07:00
2009-06-17 09:35:24 -07:00
2009-06-19 10:29:20 +10:00
2009-06-16 19:50:13 -07:00
2009-06-18 13:04:04 -07:00
2009-06-16 19:50:13 -07:00
2009-06-19 11:50:18 -04:00
2009-06-18 13:04:04 -07:00
2009-06-15 16:47:25 +10:00
2009-06-22 11:32:25 -07:00
2009-06-19 16:46:05 -07:00
2009-06-18 13:04:04 -07:00
2009-06-18 13:04:04 -07:00