mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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
This commit is contained in:
parent
9a97b2fb07
commit
ba25322edd
1 changed files with 1 additions and 2 deletions
|
@ -279,8 +279,7 @@ static void em_sti_register_clockevent(struct em_sti_priv *p)
|
||||||
static int em_sti_probe(struct platform_device *pdev)
|
static int em_sti_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct em_sti_priv *p;
|
struct em_sti_priv *p;
|
||||||
int irq;
|
int irq, ret;
|
||||||
int ret;
|
|
||||||
|
|
||||||
p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL);
|
p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL);
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
|
|
Loading…
Reference in a new issue