aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/ataflop.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-04-28 00:06:06 -0400
committerJens Axboe <jens.axboe@oracle.com>2009-04-28 02:14:50 -0400
commit5b5c5d12b91cb6b2a2967f06aef35d59008dc2e7 (patch)
treeea8397d10aaedda61fcc849ce9a7fcab17b5438b /drivers/block/ataflop.c
parent4c94dece1baf320d925cedb231489c4e0358ac5a (diff)
amiflop,ataflop,xd,mg_disk: clean up unnecessary stuff from block drivers
rq_data_dir() can only be READ or WRITE and rq->sector and nr_sectors are always automatically updated after partial request completion. Don't worry about rq_data_dir() not being either READ or WRITE or manually update sector and nr_sectors. [ Impact: cleanup ] Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Jörg Dorchain <joerg@dorchain.net> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: unsik Kim <donari75@gmail.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block/ataflop.c')
-rw-r--r--drivers/block/ataflop.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c
index 44a8702136a9..25067287211f 100644
--- a/drivers/block/ataflop.c
+++ b/drivers/block/ataflop.c
@@ -732,8 +732,6 @@ static void do_fd_action( int drive )
732 } 732 }
733 else { 733 else {
734 /* all sectors finished */ 734 /* all sectors finished */
735 CURRENT->nr_sectors -= CURRENT->current_nr_sectors;
736 CURRENT->sector += CURRENT->current_nr_sectors;
737 __blk_end_request_cur(CURRENT, 0); 735 __blk_end_request_cur(CURRENT, 0);
738 redo_fd_request(); 736 redo_fd_request();
739 return; 737 return;
@@ -1139,8 +1137,6 @@ static void fd_rwsec_done1(int status)
1139 } 1137 }
1140 else { 1138 else {
1141 /* all sectors finished */ 1139 /* all sectors finished */
1142 CURRENT->nr_sectors -= CURRENT->current_nr_sectors;
1143 CURRENT->sector += CURRENT->current_nr_sectors;
1144 __blk_end_request_cur(CURRENT, 0); 1140 __blk_end_request_cur(CURRENT, 0);
1145 redo_fd_request(); 1141 redo_fd_request();
1146 } 1142 }