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:
Shreenidhi Shedi 2022-06-03 18:30:40 +05:30 committed by Greg Kroah-Hartman
parent f2906aa863
commit 6497e77764

View File

@ -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;