Simplify math added in r310524.
Should be no functional change. Reported by: danfe MFC after: 1 week
This commit is contained in:
parent
9c91a26579
commit
0a3b1d8090
@ -3943,7 +3943,7 @@ scsi_set_sense_data_fixed_va(struct scsi_sense_data *sense_data,
|
||||
}
|
||||
if (len > sizeof(sense->cmd_spec_info)) {
|
||||
data += len - sizeof(sense->cmd_spec_info);
|
||||
len -= len - sizeof(sense->cmd_spec_info);
|
||||
len = sizeof(sense->cmd_spec_info);
|
||||
}
|
||||
bcopy(data, &sense->cmd_spec_info[
|
||||
sizeof(sense->cmd_spec_info) - len], len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user