mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +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