diff options
author | 2009-06-27 09:55:32 +0200 | |
---|---|---|
committer | 2009-06-27 09:22:10 +0100 | |
commit | 70ec3bb8ea3f8c55b255f41d122c7d4d8c0d00b4 (patch) | |
tree | 8d61fcbd6d49c8dde71426513b6945dd147935b5 /kernel | |
parent | mtd: m25p80 timeout too short for worst-case m25p16 devices (diff) | |
download | wireguard-linux-70ec3bb8ea3f8c55b255f41d122c7d4d8c0d00b4.tar.xz wireguard-linux-70ec3bb8ea3f8c55b255f41d122c7d4d8c0d00b4.zip |
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions