[PATCH 2/3] char: lp: remove redundant initialization of err

From: Shreenidhi Shedi
Date: Sun May 15 2022 - 04:09:10 EST


err is getting assigned with an appropriate value before returning,
hence this initialization is unnecessary.

Signed-off-by: Shreenidhi Shedi <sshedi@xxxxxxxxxx>
---
drivers/char/lp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/lp.c b/drivers/char/lp.c
index e61060f3c..5e8bd8d6c 100644
--- a/drivers/char/lp.c
+++ b/drivers/char/lp.c
@@ -1018,7 +1018,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;
--
2.36.1