ide-tape: simplify read/write functions
authorTejun Heo <tj@kernel.org>
Sat, 18 Apr 2009 23:46:03 +0000 (08:46 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 28 Apr 2009 05:37:32 +0000 (07:37 +0200)
commit4344d07fb8dbf0cbfec1f7d7c1afeccaceaaa120
tree40a0dccbf1b9100efa71971b930f15e1b2daef1e
parent71294cf93d22ceaa75448cc6ebee2c65897be8c2
ide-tape: simplify read/write functions

Impact: cleanup

idetape_chrdev_read/write() functions are unnecessarily complex when
everything can be handled in a single loop.  Collapse
idetape_add_chrdev_read/write_request() into the rw functions and
simplify the implementation.

Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ide/ide-tape.c