git: 3846662dab2c - main - cam: Initialize wired to false
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Nov 2021 21:43:00 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=3846662dab2c46a0d1e4532c4b7f7e317cab8883 commit 3846662dab2c46a0d1e4532c4b7f7e317cab8883 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2021-11-30 21:14:55 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-11-30 21:40:30 +0000 cam: Initialize wired to false As part of converting the code to a while loop, the unconditional initialization of wired to false was lost. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D33163 --- sys/cam/cam_periph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 54fe9a0ef40c..1203ac2d9b21 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -600,7 +600,7 @@ static u_int camperiphunit(struct periph_driver *p_drv, path_id_t pathid, target_id_t target, lun_id_t lun, const char *sn) { - bool wired; + bool wired = false; u_int unit; int i, val, dunit; const char *dname, *strval;