X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=scsiata.cpp;h=abc5f02c3a51faea7328298999dff7d3107b7153;hb=f9e10201baef7a8dcb11ab6d11a2046d724af9d0;hp=26a9290c4d0a32e718ed34a8eecc73cb0440b948;hpb=a86ec89e3a8bd0151810090b55d1a9130117fb82;p=mirror_smartmontools-debian.git diff --git a/scsiata.cpp b/scsiata.cpp index 26a9290..abc5f02 100644 --- a/scsiata.cpp +++ b/scsiata.cpp @@ -4,7 +4,7 @@ * Home page of code is: http://www.smartmontools.org * * Copyright (C) 2006-15 Douglas Gilbert - * Copyright (C) 2009-16 Christian Franke + * Copyright (C) 2009-17 Christian Franke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -62,7 +62,7 @@ #include "dev_ata_cmd_set.h" // ata_device_with_command_set #include "dev_tunnelled.h" // tunnelled_device<> -const char * scsiata_cpp_cvsid = "$Id: scsiata.cpp 4276 2016-04-02 19:13:39Z chrfranke $"; +const char * scsiata_cpp_cvsid = "$Id: scsiata.cpp 4386 2017-01-28 16:35:06Z chrfranke $"; /* This is a slightly stretched SCSI sense "descriptor" format header. The addition is to allow the 0x70 and 0x71 response codes. The idea @@ -247,14 +247,14 @@ sat_device::~sat_device() throw() bool sat_device::ata_pass_through(const ata_cmd_in & in, ata_cmd_out & out) { - if (!ata_cmd_is_supported(in, - ata_device::supports_data_out | - ata_device::supports_output_regs | - ata_device::supports_multi_sector | - ata_device::supports_48bit, - "SAT") - ) - return false; + if (!ata_cmd_is_supported(in, + ata_device::supports_data_out | + ata_device::supports_output_regs | + ata_device::supports_multi_sector | + ata_device::supports_48bit, + "SAT") + ) + return false; struct scsi_cmnd_io io_hdr; struct scsi_sense_disect sinfo; @@ -1170,7 +1170,6 @@ bool usbjmicron_device::get_registers(unsigned short addr, io_hdr.dxfer_len = size; io_hdr.dxferp = buf; io_hdr.cmnd = cdb; - io_hdr.cmnd_len = sizeof(cdb); io_hdr.cmnd_len = (!m_prolific ? 12 : 14); scsi_device * scsidev = get_tunnel_dev();