Skip to content

Commit

Permalink
mtd: spear_smi: fix compilation warning
Browse files Browse the repository at this point in the history
drivers/mtd/devices/spear_smi.c: In function 'spear_smi_probe':
drivers/mtd/devices/spear_smi.c:984:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Artem Bityutskiy authored and David Woodhouse committed Sep 29, 2012
1 parent b517097 commit 036a1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/devices/spear_smi.c
Original file line number Diff line number Diff line change
@@ -981,7 +981,7 @@ static int __devinit spear_smi_probe(struct platform_device *pdev)
dev->pdev = pdev;
dev->clk_rate = pdata->clk_rate;

if (dev->clk_rate < 0 || dev->clk_rate > SMI_MAX_CLOCK_FREQ)
if (dev->clk_rate > SMI_MAX_CLOCK_FREQ)
dev->clk_rate = SMI_MAX_CLOCK_FREQ;

dev->num_flashes = pdata->num_flashes;

0 comments on commit 036a1ac

Please sign in to comment.