projects/linux·commit 7f20caff

iscsi_ibft: iscsi_ibft_find unused variable i

7f20caff · Connor Hansen <[email protected]> · 2011-06-05 03:35:09 -07:00

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 <[email protected]>
Signed-off-by: Peter Jones <[email protected]>
[v2: Fixed warning when CONFIG_ACPI was defined]
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Commit
7f20caff0ef6ce87dbb044389d43bfa1093cd3af
Parents
55922c9d

Changes

1 files changed · +2 −0

FileStatusAddDelContent
drivers/firmware/iscsi_ibft_find.cmodified+2−0View file

drivers/firmware/iscsi_ibft_find.c

View file
diff --git a/drivers/firmware/iscsi_ibft_find.c b/drivers/firmware/iscsi_ibft_find.c
index f032e44..bfe7232 100644
--- a/drivers/firmware/iscsi_ibft_find.c
+++ b/drivers/firmware/iscsi_ibft_find.c
@@ -108,7 +108,9 @@ done:
*/
unsigned long __init find_ibft_region(unsigned long *sizep)
{
+#ifdef CONFIG_ACPI
int i;
+#endif
ibft_addr = NULL;
#ifdef CONFIG_ACPI