Commit 2612e523 authored by Nelson Castillo's avatar Nelson Castillo Committed by Ben Dooks

[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: default avatarNelson Castillo <arhuaco@freaks-unidos.net>
[ben-linux@fluff.org: subject cleanup]
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent fb6ea325
......@@ -214,7 +214,7 @@ static int s3c2410_nand_setrate(struct s3c2410_nand_info *info)
int tacls_max = (info->cpu_type == TYPE_S3C2412) ? 8 : 4;
int tacls, twrph0, twrph1;
unsigned long clkrate = clk_get_rate(info->clk);
unsigned long set, cfg, mask;
unsigned long uninitialized_var(set), cfg, uninitialized_var(mask);
unsigned long flags;
/* calculate the timing information for the controller */
......@@ -264,9 +264,6 @@ static int s3c2410_nand_setrate(struct s3c2410_nand_info *info)
break;
default:
/* keep compiler happy */
mask = 0;
set = 0;
BUG();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment