ide-tape: simplify read/write functions
commit07bd9686c50c2b1f10e48089d4fb836a971f5177
authorTejun Heo <tj@kernel.org>
Sat, 18 Apr 2009 23:46:03 +0000 (19 08:46 +0900)
committerTejun Heo <tj@kernel.org>
Sat, 18 Apr 2009 23:46:03 +0000 (19 08:46 +0900)
tree8a7b822752850ad43508d8c358ed45ca030a1894
parent6bb11dd14f70228f8dab25fd25dabeb9bc74926d
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