diff options
author | Wolfgang Denk <wd@denx.de> | 2008-08-14 14:41:06 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-08-14 14:41:06 +0200 |
commit | 4b0708093e15b412296328bf81325cf9b69fe512 (patch) | |
tree | 3586fc61e3fbac6553d888eb3091fb6064638cbb /fs/yaffs2/yaffs_qsort.c | |
parent | 28ac6719108e989429de2b3dfa90312ba7c4d27b (diff) |
Coding Style cleanup, update CHANGELOG
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'fs/yaffs2/yaffs_qsort.c')
-rw-r--r-- | fs/yaffs2/yaffs_qsort.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/yaffs2/yaffs_qsort.c b/fs/yaffs2/yaffs_qsort.c index a74709f0eb..4d56f96afb 100644 --- a/fs/yaffs2/yaffs_qsort.c +++ b/fs/yaffs2/yaffs_qsort.c @@ -44,7 +44,7 @@ register TYPE t = *pi; \ *pi++ = *pj; \ *pj++ = t; \ - } while (--i > 0); \ + } while (--i > 0); \ } #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \ @@ -53,7 +53,7 @@ static __inline void swapfunc(char *a, char *b, int n, int swaptype) { - if (swaptype <= 1) + if (swaptype <= 1) swapcode(long, a, b, n) else swapcode(char, a, b, n) @@ -74,7 +74,7 @@ med3(char *a, char *b, char *c, int (*cmp)(const void *, const void *)) { return cmp(a, b) < 0 ? (cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a )) - :(cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c )); + :(cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c )); } #ifndef min @@ -140,7 +140,7 @@ loop: SWAPINIT(a, es); } if (swap_cnt == 0) { /* Switch to insertion sort */ for (pm = (char *) a + es; pm < (char *) a + n * es; pm += es) - for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0; + for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0; pl -= es) swap(pl, pl - es); return; @@ -153,7 +153,7 @@ loop: SWAPINIT(a, es); vecswap(pb, pn - r, r); if ((r = pb - pa) > es) yaffs_qsort(a, r / es, es, cmp); - if ((r = pd - pc) > es) { + if ((r = pd - pc) > es) { /* Iterate rather than recurse to save stack space */ a = pn - r; n = r / es; |