git: 65ee334d112e - main - smb_iod_main: eliminate write only variable error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 04:33:03 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=65ee334d112e1d19425bb59628500d0ba91ab48c
commit 65ee334d112e1d19425bb59628500d0ba91ab48c
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 02:40:16 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:30:54 +0000
smb_iod_main: eliminate write only variable error
Sponsored by: Netflix
---
sys/netsmb/smb_iod.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/netsmb/smb_iod.c b/sys/netsmb/smb_iod.c
index bc53d01edad4..a004d04b3bf3 100644
--- a/sys/netsmb/smb_iod.c
+++ b/sys/netsmb/smb_iod.c
@@ -581,10 +581,8 @@ smb_iod_main(struct smbiod *iod)
/* struct smb_vc *vcp = iod->iod_vc;*/
struct smbiod_event *evp;
/* struct timespec tsnow;*/
- int error;
SMBIODEBUG("\n");
- error = 0;
/*
* Check all interesting events