Skip to content

Commit 6497e77

Browse files
sshedigregkh
authored andcommitted
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>
1 parent f2906aa commit 6497e77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/char/lp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ static struct parport_driver lp_driver = {
10191019

10201020
static int __init lp_init(void)
10211021
{
1022-
int i, err = 0;
1022+
int i, err;
10231023

10241024
if (parport_nr[0] == LP_PARPORT_OFF)
10251025
return 0;

0 commit comments

Comments
 (0)