mtd: spear_smi: fix compilation warning
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 17 Aug 2012 10:05:41 +0000 (13:05 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 13:53:30 +0000 (14:53 +0100)
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>
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;