Simplify math added in r310524.

Should be no functional change.

Reported by:	danfe
MFC after:	1 week
This commit is contained in:
Alexander Motin 2019-05-22 15:39:35 +00:00
parent 9c91a26579
commit 0a3b1d8090

View File

@ -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);