ahci: delete write-only variables (v2)
authorBlue Swirl <blauwirbel@gmail.com>
Sun, 19 Dec 2010 10:43:09 +0000 (10:43 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 19 Dec 2010 10:43:09 +0000 (10:43 +0000)
commit4be0359fe41f244a1995698e2dd7010f1d3f6f5e
treec0ce20ad4aa3435b5c8d10d0adaae5525ff15c93
parent4d738a74ade859099332ae4b9dbabc09c6162b4b
ahci: delete write-only variables (v2)

Avoid these warnings with GCC 4.6.0:
/src/qemu/hw/ide/ahci.c: In function 'ahci_reset_port':
/src/qemu/hw/ide/ahci.c:810:14: error: variable 'tfd' set but not used [-Werror=unused-but-set-variable]
/src/qemu/hw/ide/ahci.c: In function 'handle_cmd':
/src/qemu/hw/ide/ahci.c:1103:19: error: variable 'pr' set but not used [-Werror=unused-but-set-variable]

In the tfd variable case, fix the logic also.

CC: Alexander Graf <agraf@suse.de>
CC: Kevin Wolf <kwolf@redhat.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/ide/ahci.c