Skip to content

Commit

Permalink
[MTD] [NAND] S3C2410: Uninitialised variable cleanup
Browse files Browse the repository at this point in the history
~ 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>
  • Loading branch information
Nelson Castillo authored and Ben Dooks committed May 30, 2009
1 parent fb6ea32 commit 2612e52
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mtd/nand/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -264,9 +264,6 @@ static int s3c2410_nand_setrate(struct s3c2410_nand_info *info)
break;

default:
/* keep compiler happy */
mask = 0;
set = 0;
BUG();
}

Expand Down

0 comments on commit 2612e52

Please sign in to comment.