Skip to content

Commit

Permalink
libata: remove unused variable from ata_eh_reset()
Browse files Browse the repository at this point in the history
Removed unused variable did_followup_srst from ata_eh_reset().

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jun 27, 2007
1 parent 37301a5 commit 8b5bb2f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/ata/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ static int ata_eh_reset(struct ata_port *ap, int classify,
unsigned long deadline;
unsigned int action;
ata_reset_fn_t reset;
int i, did_followup_srst, rc;
int i, rc;

/* about to reset */
ata_eh_about_to_do(ap, NULL, ehc->i.action & ATA_EH_RESET_MASK);
Expand Down Expand Up @@ -1687,11 +1687,9 @@ static int ata_eh_reset(struct ata_port *ap, int classify,

rc = ata_do_reset(ap, reset, classes, deadline);

did_followup_srst = 0;
if (reset == hardreset &&
ata_eh_followup_srst_needed(rc, classify, classes)) {
/* okay, let's do follow-up softreset */
did_followup_srst = 1;
reset = softreset;

if (!reset) {
Expand Down

0 comments on commit 8b5bb2f

Please sign in to comment.