]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: spear_smi: fix compilation warning
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 17 Aug 2012 10:05:41 +0000 (13:05 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 24 Aug 2012 08:03:37 +0000 (11:03 +0300)
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>
drivers/mtd/devices/spear_smi.c

index 7c10466766c7d5cad2f9772df4f6a795611a8801..421bc65ae829e3047eab0bdd82bf89d2e3cf746e 100644 (file)
@@ -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;