From: Connor Hansen Date: Sun, 5 Jun 2011 10:35:09 +0000 (-0700) Subject: iscsi_ibft: iscsi_ibft_find unused variable i X-Git-Tag: firefly_0821_release~7613^2~927^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7f20caff0ef6ce87dbb044389d43bfa1093cd3af;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Peter Jones [v2: Fixed warning when CONFIG_ACPI was defined] Signed-off-by: Konrad Rzeszutek Wilk --- 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: */ unsigned long __init find_ibft_region(unsigned long *sizep) { +#ifdef CONFIG_ACPI int i; +#endif ibft_addr = NULL; #ifdef CONFIG_ACPI