diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-07-18 06:19:52 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-07-24 06:36:09 -0400 |
commit | 9c9ec147709e63e4e8ac6a037c6bb50688ff8e9c (patch) | |
tree | d66805c819ffa2ae42bf5743ac77f077c903ad19 /drivers/mtd/ubi/scan.c | |
parent | 4d88de4beb6f327dfc7c2221eab532dad5b2bb3e (diff) |
UBI: fix checkpatch.pl errors and warnings
Just out or curiousity ran checkpatch.pl for whole UBI,
and discovered there are quite a few of stylistic issues.
Fix them.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/scan.c')
-rw-r--r-- | drivers/mtd/ubi/scan.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index 40eca9ce5fab..0bb7488862d2 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c | |||
@@ -248,7 +248,8 @@ static int compare_lebs(struct ubi_device *ubi, const struct ubi_scan_leb *seb, | |||
248 | unsigned long long sqnum2 = be64_to_cpu(vid_hdr->sqnum); | 248 | unsigned long long sqnum2 = be64_to_cpu(vid_hdr->sqnum); |
249 | 249 | ||
250 | if (seb->sqnum == 0 && sqnum2 == 0) { | 250 | if (seb->sqnum == 0 && sqnum2 == 0) { |
251 | long long abs, v1 = seb->leb_ver, v2 = be32_to_cpu(vid_hdr->leb_ver); | 251 | long long abs; |
252 | long long v1 = seb->leb_ver, v2 = be32_to_cpu(vid_hdr->leb_ver); | ||
252 | 253 | ||
253 | /* | 254 | /* |
254 | * UBI constantly increases the logical eraseblock version | 255 | * UBI constantly increases the logical eraseblock version |
@@ -752,7 +753,8 @@ struct ubi_scan_leb *ubi_scan_get_free_peb(struct ubi_device *ubi, | |||
752 | * This function returns a zero if the physical eraseblock was successfully | 753 | * This function returns a zero if the physical eraseblock was successfully |
753 | * handled and a negative error code in case of failure. | 754 | * handled and a negative error code in case of failure. |
754 | */ | 755 | */ |
755 | static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si, int pnum) | 756 | static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si, |
757 | int pnum) | ||
756 | { | 758 | { |
757 | long long uninitialized_var(ec); | 759 | long long uninitialized_var(ec); |
758 | int err, bitflips = 0, vol_id, ec_corr = 0; | 760 | int err, bitflips = 0, vol_id, ec_corr = 0; |
@@ -1301,8 +1303,7 @@ static int paranoid_check_si(struct ubi_device *ubi, struct ubi_scan_info *si) | |||
1301 | if (err < 0) { | 1303 | if (err < 0) { |
1302 | kfree(buf); | 1304 | kfree(buf); |
1303 | return err; | 1305 | return err; |
1304 | } | 1306 | } else if (err) |
1305 | else if (err) | ||
1306 | buf[pnum] = 1; | 1307 | buf[pnum] = 1; |
1307 | } | 1308 | } |
1308 | 1309 | ||