diff options
author | Warner Losh <imp@FreeBSD.org> | 2025-02-04 18:29:09 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2025-02-04 18:29:38 +0000 |
commit | 43693fffc07e8df6509d2fdf6c897a7b2916965c (patch) | |
tree | f35431902c56a8fe16a402168abe1d5788a10099 | |
parent | 5c04086a61acbc2c237ca992b85d26c933197009 (diff) |
cam/periph: Use a bool for a bool
This should be a bool, not a non-zero int. no change intended.
Sponsored by: Netflix
-rw-r--r-- | sys/cam/cam_periph.c | 7 |
1 files 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, |