libata: don't call ata_scsi_rbuf_fill for command without a response buffer
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Jan 2017 08:41:47 +0000 (09:41 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 10 Jan 2017 15:55:40 +0000 (10:55 -0500)
commita0c0b0e945cad4d6b2871469883fbbc316afcd44
tree13bab0cc7468c127fda1521deb41f48eda2538b4
parent8fc6c0657bf852766f08d389c5c3378a032b3de7
libata: don't call ata_scsi_rbuf_fill for command without a response buffer

No need to copy a zeroed buffer to the caller if the command is defined
to not have a response in the SCSI spec.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-scsi.c