View | Details | Raw Unified | Return to bug 241645
Collapse All | Expand All

(-)camcontrol.c (-2 / +3 lines)
Lines 170-178 int cam_is_removable(const char* device_path) Link Here
170
                == -1)
170
                == -1)
171
        errx(1, "%s", cam_errbuf);
171
        errx(1, "%s", cam_errbuf);
172
172
173
    if ((cam_dev = cam_open_spec_device(device,unit,O_RDWR,NULL))
173
    if ((cam_dev = cam_open_spec_device(device,unit,O_RDWR,NULL)) == NULL) {
174
                == NULL)
175
            errx(1,"%s", cam_errbuf);
174
            errx(1,"%s", cam_errbuf);
175
            return (-1);
176
    }
176
177
177
    inq_error = scsiinquiry(cam_dev, task_attr, retry_count, timeout, &inq_result);
178
    inq_error = scsiinquiry(cam_dev, task_attr, retry_count, timeout, &inq_result);
178
    ident_error = ataidentify(cam_dev, retry_count, timeout, &ident_result);
179
    ident_error = ataidentify(cam_dev, retry_count, timeout, &ident_result);

Return to bug 241645