cam/scsi: Remove mostly unused scsi_quirk_table_size.
It was only being used only once and it can be directly replaced instead.
This commit is contained in:
parent
288b2385b8
commit
ea0ccffc39
@ -556,8 +556,6 @@ static struct scsi_quirk_entry scsi_quirk_table[] =
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int scsi_quirk_table_size = nitems(scsi_quirk_table);
|
|
||||||
|
|
||||||
static cam_status proberegister(struct cam_periph *periph,
|
static cam_status proberegister(struct cam_periph *periph,
|
||||||
void *arg);
|
void *arg);
|
||||||
static void probeschedule(struct cam_periph *probe_periph);
|
static void probeschedule(struct cam_periph *probe_periph);
|
||||||
@ -2365,7 +2363,7 @@ scsi_alloc_device(struct cam_eb *bus, struct cam_et *target, lun_id_t lun_id)
|
|||||||
* Take the default quirk entry until we have inquiry
|
* Take the default quirk entry until we have inquiry
|
||||||
* data and can determine a better quirk to use.
|
* data and can determine a better quirk to use.
|
||||||
*/
|
*/
|
||||||
quirk = &scsi_quirk_table[scsi_quirk_table_size - 1];
|
quirk = &scsi_quirk_table[nitems(scsi_quirk_table) - 1];
|
||||||
device->quirk = (void *)quirk;
|
device->quirk = (void *)quirk;
|
||||||
device->mintags = quirk->mintags;
|
device->mintags = quirk->mintags;
|
||||||
device->maxtags = quirk->maxtags;
|
device->maxtags = quirk->maxtags;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user