amiflop,ataflop,xd,mg_disk: clean up unnecessary stuff from block drivers
authorTejun Heo <tj@kernel.org>
Tue, 28 Apr 2009 04:06:06 +0000 (13:06 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 28 Apr 2009 06:14:50 +0000 (08:14 +0200)
commit5b5c5d12b91cb6b2a2967f06aef35d59008dc2e7
treeea8397d10aaedda61fcc849ce9a7fcab17b5438b
parent4c94dece1baf320d925cedb231489c4e0358ac5a
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>
drivers/block/amiflop.c
drivers/block/ataflop.c
drivers/block/mg_disk.c
drivers/block/xd.c