Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144379439
D51171.id158027.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
902 B
Referenced Files
None
Subscribers
None
D51171.id158027.diff
View Options
diff --git a/sys/cam/scsi/scsi_xpt.c b/sys/cam/scsi/scsi_xpt.c
--- a/sys/cam/scsi/scsi_xpt.c
+++ b/sys/cam/scsi/scsi_xpt.c
@@ -2191,16 +2191,16 @@
* Check to see if we scan any further luns.
*/
if (next_target) {
- int done;
+ bool done;
/*
* Free the current request path- we're done with it.
*/
xpt_free_path(oldpath);
hop_again:
- done = 0;
+ done = false;
if (scan_info->request_ccb->ccb_h.func_code == XPT_SCAN_TGT) {
- done = 1;
+ done = true;
} else if (scan_info->cpi->hba_misc & PIM_SEQSCAN) {
scan_info->counter++;
if (scan_info->counter ==
@@ -2209,12 +2209,12 @@
}
if (scan_info->counter >=
scan_info->cpi->max_target+1) {
- done = 1;
+ done = true;
}
} else {
scan_info->counter--;
if (scan_info->counter == 0) {
- done = 1;
+ done = true;
}
}
if (done) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 3:38 AM (9 m, 37 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28532615
Default Alt Text
D51171.id158027.diff (902 B)
Attached To
Mode
D51171: cam: Use bool for done
Attached
Detach File
Event Timeline
Log In to Comment