summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2019-12-21 17:30:25 +0000
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-01-16 19:06:57 +0100
commitba25322edd600300e55cd58eb7fbdf9cbdc5a82d (patch)
tree5a09d4e6b659eccf606dc17538a0fdcecf88e8ec
parent9a97b2fb070d497c683aed9fb86b7ec5245cea86 (diff)
downloadlinux-stable-ba25322edd600300e55cd58eb7fbdf9cbdc5a82d.tar.gz
linux-stable-ba25322edd600300e55cd58eb7fbdf9cbdc5a82d.tar.bz2
linux-stable-ba25322edd600300e55cd58eb7fbdf9cbdc5a82d.zip
clocksource/drivers/em_sti: Fix variable declaration in em_sti_probe
'irq' and 'ret' are variables of the same type and there is no need to use two lines. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20191221173027.30716-3-tiny.windzz@gmail.com
-rw-r--r--drivers/clocksource/em_sti.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clocksource/em_sti.c b/drivers/clocksource/em_sti.c
index 086fd5d80b99..ab190dffb1ed 100644
--- a/drivers/clocksource/em_sti.c
+++ b/drivers/clocksource/em_sti.c
@@ -279,8 +279,7 @@ static void em_sti_register_clockevent(struct em_sti_priv *p)
static int em_sti_probe(struct platform_device *pdev)
{
struct em_sti_priv *p;
- int irq;
- int ret;
+ int irq, ret;
p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL);
if (p == NULL)