The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=43693fffc07e8df6509d2fdf6c897a7b2916965c

commit 43693fffc07e8df6509d2fdf6c897a7b2916965c
Author:     Warner Losh <i...@freebsd.org>
AuthorDate: 2025-02-04 18:29:09 +0000
Commit:     Warner Losh <i...@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,

Reply via email to