]> www.infradead.org Git - mtd-utils.git/commitdiff
mtd-utils: fix the trailing whitespace problems
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Wed, 1 Jul 2015 03:44:14 +0000 (11:44 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 6 Jul 2015 21:52:35 +0000 (14:52 -0700)
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
MAKEDEV
fectest.c
tests/ubi-tests/stress-test.sh
ubi-utils/libubi.c

diff --git a/MAKEDEV b/MAKEDEV
index b31e61fd61bc0eafb6be82216431df00117eb0fd..a4141b55daf1ec307e63efb240976ccbb551e6df 100755 (executable)
--- a/MAKEDEV
+++ b/MAKEDEV
@@ -38,5 +38,5 @@ for a in `seq 0 16` ; do
        mknod /dev/mtd$a c 90 `expr $a + $a`
        mknod /dev/mtdr$a c 90 `expr $a + $a + 1`
        mknod /dev/mtdblock$a b 31 $a
-done   
+done
 
index c1fbd52ee14e9efeab7ef18046133ced8f580b96..fd577f33069e76ec52dd4b403c3ee0239c777f0f 100644 (file)
--- a/fectest.c
+++ b/fectest.c
@@ -11,7 +11,6 @@
 #include <crc32.h>
 
 #define ERASE_SIZE 131072
-//#define PKT_SIZE 1400
 #define NR_PKTS ((ERASE_SIZE + PKT_SIZE - 1) / PKT_SIZE)
 #define DROPS 8
 
@@ -83,7 +82,7 @@ int main(void)
                fd = open("after", O_WRONLY|O_TRUNC|O_CREAT, 0644);
                if (fd >= 0)
                        write(fd, pktbuf, ERASE_SIZE);
-               
+
                exit(1);
        }
 
index 50c563ab2d773d50a20b2cf3632c22dfa7fa6b8b..a150495d96eee4a9166f9c2c7f47b52b812bcde0 100755 (executable)
@@ -60,12 +60,12 @@ print_params()
        if [ "$module" = "nandsim" ]; then
                printf "%s" "page size ${page_size}KiB, VID offset $vid_offs, "
        fi
-       printf "%s\n" "fastmap $fastmap" 
+       printf "%s\n" "fastmap $fastmap"
 }
 
 # Load mtdram with specified size and PEB size
 # Usage: load_mtdram <flash size> <PEB size>
-# 1. Flash size is specified in MiB 
+# 1. Flash size is specified in MiB
 # 2. PEB size is specified in KiB
 load_mtdram()
 {
@@ -86,7 +86,7 @@ print_separator()
 # Usage: run_test <nandsim|mtdram> <flash size> <PEB size> \
 #                 <Page size> <VID hdr offs> <enable fastmap>
 # 1. Simulator type (nandsim or mtdram)
-# 2. Flash size is specified in MiB 
+# 2. Flash size is specified in MiB
 # 3. PEB size is specified in KiB
 # 4. Page size is specified in bytes (mtdram ingores this)
 # 5. VID header offset (mtdram ingores this)
@@ -98,7 +98,7 @@ run_test()
        local peb_size="$3";
        local page_size="$4";
        local vid_offs="$5"
-       local fastmap="$6";  
+       local fastmap="$6";
        local fm_supported fm_param mtdnum
 
        print_separator
index 1e08b7d121dbd7d827899638d323f2616656386d..97c04345889aa2ba23ff1d1dc66c74633ad73260 100644 (file)
@@ -792,7 +792,7 @@ int ubi_attach(libubi_t desc, const char *node, struct ubi_attach_request *req)
                        req->dev_num = r.ubi_num;
                        /*
                         * The call succeeded. It means that the kernel ignored
-                        * 'max_beb_per1024' parameter. 
+                        * 'max_beb_per1024' parameter.
                         */
                        return 1;
                } else if (errno != EINVAL)