diff options
author | Connor Hansen <cmdkhh@gmail.com> | 2011-06-05 06:35:09 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad@kernel.org> | 2011-06-09 09:05:12 -0400 |
commit | 7f20caff0ef6ce87dbb044389d43bfa1093cd3af (patch) | |
tree | 4f5cd64b1335f28d9dfa7603286b682b282099e1 /drivers/firmware | |
parent | 55922c9d1b84b89cb946c777fddccb3247e7df2c (diff) |
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>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/iscsi_ibft_find.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firmware/iscsi_ibft_find.c b/drivers/firmware/iscsi_ibft_find.c index f032e446fc11..bfe723266fd8 100644 --- a/drivers/firmware/iscsi_ibft_find.c +++ b/drivers/firmware/iscsi_ibft_find.c | |||
@@ -108,7 +108,9 @@ done: | |||
108 | */ | 108 | */ |
109 | unsigned long __init find_ibft_region(unsigned long *sizep) | 109 | unsigned long __init find_ibft_region(unsigned long *sizep) |
110 | { | 110 | { |
111 | #ifdef CONFIG_ACPI | ||
111 | int i; | 112 | int i; |
113 | #endif | ||
112 | ibft_addr = NULL; | 114 | ibft_addr = NULL; |
113 | 115 | ||
114 | #ifdef CONFIG_ACPI | 116 | #ifdef CONFIG_ACPI |