/* Notes: This function has the job of initializing a number of fields related to error handling. Typically this will be called once for each command, as required.  */
static void scsi_init_cmd_errh(struct scsi_cmnd *cmd)
/* Notes: This function has the job of initializing a number of fields related to error handling. Typically this will be called once for each command, as required.  */
static void scsi_init_cmd_errh(struct scsi_cmnd *cmd)
{
	cmd->serial_number = 0;
	scsi_set_resid(cmd, 0);
	memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE);
	if (cmd->cmd_len == 0)
		cmd->cmd_len = scsi_command_size(cmd->cmnd);
}