[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1307270109-28635-1-git-send-email-cmdkhh@gmail.com>
Date: Sun, 5 Jun 2011 03:35:09 -0700
From: Connor Hansen <cmdkhh@...il.com>
To: pjones@...hat.com
Cc: konrad@...nel.org, linux-kernel@...r.kernel.org,
Connor Hansen <cmdkhh@...il.com>
Subject: [PATCH] iscsi_ibft_find unused variable i
int i is only needed if CONFIG_ACPI is set
so move it within ifdef so kernels without ACPI
dont allocate space for nothing. Fixes warning too.
Signed-off-by: Connor Hansen <cmdkhh@...il.com>
---
drivers/firmware/iscsi_ibft_find.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/firmware/iscsi_ibft_find.c b/drivers/firmware/iscsi_ibft_find.c
index f032e44..c2bfa50 100644
--- a/drivers/firmware/iscsi_ibft_find.c
+++ b/drivers/firmware/iscsi_ibft_find.c
@@ -108,10 +108,10 @@ done:
*/
unsigned long __init find_ibft_region(unsigned long *sizep)
{
- int i;
ibft_addr = NULL;
#ifdef CONFIG_ACPI
+ int i;
for (i = 0; i < ARRAY_SIZE(ibft_signs) && !ibft_addr; i++)
acpi_table_parse(ibft_signs[i].sign, acpi_find_ibft);
#endif /* CONFIG_ACPI */
--
1.7.4.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists