mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
tty: serial: samsung_tty: remove set but not used variables
The value of 'ret' is not used which reported by svace, so just return instead of break. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Link: https://lore.kernel.org/r/1619484575-26098-1-git-send-email-tiantao6@hisilicon.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8cac2f6eb8
commit
7a9a2363d7
|
|
@ -2220,8 +2220,7 @@ static int s3c24xx_serial_probe(struct platform_device *pdev)
|
|||
default:
|
||||
dev_warn(&pdev->dev, "unsupported reg-io-width (%d)\n",
|
||||
prop);
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user