diff options
author | Nelson Castillo <arhuaco@freaks-unidos.net> | 2009-05-10 16:41:54 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-05-30 13:01:10 -0400 |
commit | 2612e523dc3695df319662ff279806a3d74de375 (patch) | |
tree | d09a8d9309d7ae77dc55ac6770630570d8201d6f /drivers/mtd/nand/s3c2410.c | |
parent | fb6ea3258742f41be8dd527ebd58a1a1e2cef23a (diff) |
[MTD] [NAND] S3C2410: Uninitialised variable cleanup
~ Avoid warning without generating code.
(I don't even get the warning without the macro uninitialized_var).
Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
[ben-linux@fluff.org: subject cleanup]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'drivers/mtd/nand/s3c2410.c')
-rw-r--r-- | drivers/mtd/nand/s3c2410.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index daa4af918205..7be3663df1e5 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c | |||
@@ -214,7 +214,7 @@ static int s3c2410_nand_setrate(struct s3c2410_nand_info *info) | |||
214 | int tacls_max = (info->cpu_type == TYPE_S3C2412) ? 8 : 4; | 214 | int tacls_max = (info->cpu_type == TYPE_S3C2412) ? 8 : 4; |
215 | int tacls, twrph0, twrph1; | 215 | int tacls, twrph0, twrph1; |
216 | unsigned long clkrate = clk_get_rate(info->clk); | 216 | unsigned long clkrate = clk_get_rate(info->clk); |
217 | unsigned long set, cfg, mask; | 217 | unsigned long uninitialized_var(set), cfg, uninitialized_var(mask); |
218 | unsigned long flags; | 218 | unsigned long flags; |
219 | 219 | ||
220 | /* calculate the timing information for the controller */ | 220 | /* calculate the timing information for the controller */ |
@@ -264,9 +264,6 @@ static int s3c2410_nand_setrate(struct s3c2410_nand_info *info) | |||
264 | break; | 264 | break; |
265 | 265 | ||
266 | default: | 266 | default: |
267 | /* keep compiler happy */ | ||
268 | mask = 0; | ||
269 | set = 0; | ||
270 | BUG(); | 267 | BUG(); |
271 | } | 268 | } |
272 | 269 | ||