Repository navigation
Commit 80f82c1
scsi: sd: Remove superfluous residual assignments
Since commit 26e85fc ("[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>1 parent 229531b commit 80f82c1
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
843 | 843 | | |
844 | 844 | | |
845 | 845 | | |
846 | | - | |
847 | 846 | | |
848 | 847 | | |
849 | 848 | | |
| |||
875 | 874 | | |
876 | 875 | | |
877 | 876 | | |
878 | | - | |
879 | 877 | | |
880 | 878 | | |
881 | 879 | | |
| |||
907 | 905 | | |
908 | 906 | | |
909 | 907 | | |
910 | | - | |
911 | 908 | | |
912 | 909 | | |
913 | 910 | | |
| |||
0 commit comments