libata: do not attempt to retrieve sense code twice
authorHannes Reinecke <hare@suse.de>
Mon, 25 Apr 2016 10:45:43 +0000 (12:45 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 9 May 2016 16:36:44 +0000 (12:36 -0400)
commitd238ffd59d3c65c608f39a0ab2819b63c912f783
tree274b8b6242f5abb60a2a9bd59e91cd9bdf1579fb
parent698f6700a6f19ba4550a722eaacf9f9d212b3fd9
libata: do not attempt to retrieve sense code twice

Do not call ata_request_sense() if the sense code is already
present.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-eh.c