Date: Tue, 4 Feb 2025 18:31:53 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 43693fffc07e - main - cam/periph: Use a bool for a bool Message-ID: <202502041831.514IVrr6035193@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=43693fffc07e8df6509d2fdf6c897a7b2916965c commit 43693fffc07e8df6509d2fdf6c897a7b2916965c Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2025-02-04 18:29:09 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2025-02-04 18:29:38 +0000 cam/periph: Use a bool for a bool This should be a bool, not a non-zero int. no change intended. Sponsored by: Netflix --- sys/cam/cam_periph.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 98236e3f5f5c..833df6cfb99b 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -1874,7 +1874,8 @@ cam_periph_error(union ccb *ccb, cam_flags camflags, struct cam_periph *periph; const char *action_string; cam_status status; - int frozen, error, openings, devctl_err; + bool frozen; + int error, openings, devctl_err; uint32_t action, relsim_flags, timeout; action = SSQ_PRINT_SENSE; @@ -2094,11 +2095,11 @@ cam_periph_error(union ccb *ccb, cam_flags camflags, /* Attempt a retry */ if (error == ERESTART || error == 0) { - if (frozen != 0) + if (frozen) ccb->ccb_h.status &= ~CAM_DEV_QFRZN; if (error == ERESTART) xpt_action(ccb); - if (frozen != 0) + if (frozen) cam_release_devq(ccb->ccb_h.path, relsim_flags, openings,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502041831.514IVrr6035193>