ide-cd: clear sense buffer before issuing request sense
authorTejun Heo <tj@kernel.org>
Sat, 18 Apr 2009 22:00:41 +0000 (07:00 +0900)
committerTejun Heo <tj@kernel.org>
Sat, 18 Apr 2009 22:00:41 +0000 (07:00 +0900)
commit1873b90cdea038715ec7140fccc2116fb930ffb5
tree3431a3c61937ca8db8d535394bec57bb846c4de5
parent46a802e852c2106d755f697819ea80cd3ffdc222
ide-cd: clear sense buffer before issuing request sense

Impact: code simplification

ide_cd_request_sense_fixup() clears the tail of the sense buffer if
the device didn't completely fill it.  This patch makes
cdrom_queue_request_sense() clear the sense buffer before issuing the
command instead of clearing it afterwards.  This simplifies code and
eases future changes.

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