Skip to content

Commit

Permalink
iscsi_ibft: iscsi_ibft_find unused variable i
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Connor Hansen authored and konradwilk committed Jun 9, 2011
1 parent 55922c9 commit 7f20caf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/firmware/iscsi_ibft_find.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ static int __init find_ibft_in_mem(void)
*/
unsigned long __init find_ibft_region(unsigned long *sizep)
{
#ifdef CONFIG_ACPI
int i;
#endif
ibft_addr = NULL;

#ifdef CONFIG_ACPI
Expand Down

0 comments on commit 7f20caf

Please sign in to comment.