mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 04:06:26 +00:00
char: lp: remove redundant initialization of err
err is getting assigned with an appropriate value before returning, hence this initialization is unnecessary. Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com> Link: https://lore.kernel.org/r/20220603130040.601673-2-sshedi@vmware.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f2906aa863
commit
6497e77764
@ -1019,7 +1019,7 @@ static struct parport_driver lp_driver = {
|
||||
|
||||
static int __init lp_init(void)
|
||||
{
|
||||
int i, err = 0;
|
||||
int i, err;
|
||||
|
||||
if (parport_nr[0] == LP_PARPORT_OFF)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user