ide-cd: Remove redundant sense buffer
authorKees Cook <keescook@chromium.org>
Tue, 31 Jul 2018 19:51:51 +0000 (12:51 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Aug 2018 21:22:37 +0000 (15:22 -0600)
commit7a6873be1b11517a0c55ab4534e4de54b3e228a3
tree4e6c4ee6851408a428b2ef7e57e01b5ccc911f44
parente7d0748dd71695b94f3a35c8bdc05226a7f3d919
ide-cd: Remove redundant sense buffer

This is already able to process the sense buffer, so remove the redundant
parsing during the failure path. This also fixes any possible stale values
since the prior code did not check the sense length.

Acked-by: David S. Miller <davem@davemloft.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ide/ide-cd.c