iscsi_ibft: iscsi_ibft_find unused variable i
authorConnor Hansen <cmdkhh@gmail.com>
Sun, 5 Jun 2011 10:35:09 +0000 (03:35 -0700)
committerKonrad Rzeszutek Wilk <konrad@kernel.org>
Thu, 9 Jun 2011 13:05:12 +0000 (09:05 -0400)
commit7f20caff0ef6ce87dbb044389d43bfa1093cd3af
tree4f5cd64b1335f28d9dfa7603286b682b282099e1
parent55922c9d1b84b89cb946c777fddccb3247e7df2c
iscsi_ibft: iscsi_ibft_find unused variable i

int i is only needed if CONFIG_ACPI is set
so move it within a new ifdef so kernels without ACPI
don't allocate space for nothing. Fixes warning too.

Signed-off-by: Connor Hansen <cmdkhh@gmail.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
[v2: Fixed warning when CONFIG_ACPI was defined]
Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
drivers/firmware/iscsi_ibft_find.c