]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: sd: Remove superfluous residual assignments
authorBart Van Assche <bvanassche@acm.org>
Fri, 8 Feb 2019 21:25:02 +0000 (13:25 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 12 Feb 2019 16:13:41 +0000 (11:13 -0500)
commit7689ea73f3ce8c50e07821be62e22b9246e0bbf8
treeccec8510bc625843a4a16544df465fb693bfb644
parente1374c1450da822e71c44e8f0d9b3934049a2b62
scsi: sd: Remove superfluous residual assignments

Since commit daf7cd8cc57a ("[SCSI] sd: Permit merged discard requests";
kernel v3.10) sd_done() sets the residual not only for failed special
requests but also for special requests that succeeded. Hence remove the
code from functions called by sd_init_command() that sets the residual.
This patch does not change any functionality.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c