From 09a2ad3a415923d8cfa0b96ac6dadd46acb20d8c Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Fri, 17 Aug 2012 13:05:41 +0300 Subject: [PATCH] mtd: spear_smi: fix compilation warning 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 --- drivers/mtd/devices/spear_smi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c index 7c10466766c7..421bc65ae829 100644 --- a/drivers/mtd/devices/spear_smi.c +++ b/drivers/mtd/devices/spear_smi.c @@ -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; -- 2.39.5