lkml.org 
[lkml]   [2022]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/5] char: lp: remove redundant initialization of err
Date
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
---
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 d474d02b6c7f..536ceb11176e 100644
--- a/drivers/char/lp.c
+++ b/drivers/char/lp.c
@@ -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;
--
2.36.1
\
 
 \ /
  Last update: 2022-05-14 23:15    [W:1.947 / U:1.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site