* [PATCH] iscsi_ibft_find unused variable i
@ 2011-06-05 10:35 Connor Hansen
2011-06-06 14:06 ` Peter Jones
0 siblings, 1 reply; 3+ messages in thread
From: Connor Hansen @ 2011-06-05 10:35 UTC (permalink / raw)
To: pjones; +Cc: konrad, linux-kernel, Connor Hansen
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@gmail.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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iscsi_ibft_find unused variable i
2011-06-05 10:35 [PATCH] iscsi_ibft_find unused variable i Connor Hansen
@ 2011-06-06 14:06 ` Peter Jones
2011-06-06 15:02 ` Konrad Rzeszutek Wilk
0 siblings, 1 reply; 3+ messages in thread
From: Peter Jones @ 2011-06-06 14:06 UTC (permalink / raw)
To: Connor Hansen; +Cc: konrad, linux-kernel
On 06/05/2011 06:35 AM, Connor Hansen wrote:
> 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@gmail.com>
Reasonable enough.
Signed-off-by: Peter Jones <pjones@redhat.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 */
--
Peter
Space, is big. Really big. You just won't believe how vastly hugely
mindbogglingly big it is. I mean you may think it's a long way down the
road to the chemist, but that's just peanuts to space.
-- The Hitchhiker's Guide to the Galaxy
01234567890123456789012345678901234567890123456789012345678901234567890123456789
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iscsi_ibft_find unused variable i
2011-06-06 14:06 ` Peter Jones
@ 2011-06-06 15:02 ` Konrad Rzeszutek Wilk
0 siblings, 0 replies; 3+ messages in thread
From: Konrad Rzeszutek Wilk @ 2011-06-06 15:02 UTC (permalink / raw)
To: Peter Jones; +Cc: Connor Hansen, konrad, linux-kernel
On Mon, Jun 06, 2011 at 10:06:59AM -0400, Peter Jones wrote:
> On 06/05/2011 06:35 AM, Connor Hansen wrote:
> > 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@gmail.com>
>
> Reasonable enough.
>
> Signed-off-by: Peter Jones <pjones@redhat.com>
<nods> Queued up for 3.0-rc2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-06 15:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-05 10:35 [PATCH] iscsi_ibft_find unused variable i Connor Hansen
2011-06-06 14:06 ` Peter Jones
2011-06-06 15:02 ` Konrad Rzeszutek Wilk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).