]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - fs/yaffs2/yaffs_qsort.c
Coding Style cleanup, update CHANGELOG
[people/ms/u-boot.git] / fs / yaffs2 / yaffs_qsort.c
index a74709f0eb278dcf2214cef718038e822ff31237..4d56f96afb142edfc9bcfb5c266728b583eb0307 100644 (file)
@@ -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;