[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C28F20C.20608@gmail.com>
Date: Mon, 28 Jun 2010 12:03:40 -0700
From: "Justin P. Mattock" <justinmattock@...il.com>
To: David Howells <dhowells@...hat.com>
CC: linux-kernel@...r.kernel.org, sds@...ho.nsa.gov, lenb@...nel.org,
linux-bluetooth@...r.kernel.org
Subject: Re: [PATCH 3/5]acpi:glue.c Fix warning: variable 'ret' set but not
used
On 06/28/2010 11:47 AM, David Howells wrote:
> Justin P. Mattock<justinmattock@...il.com> wrote:
>
>> would just removing ret be good or will things go out of whack because of no
>> ret
>
> Don't you then get warnings for not capturing the result?
>
> David
>
not sure if it would give warnings for not capturing the result.
then doing this would be the way to go.
if (ret) {
printk(KERN_WARNING "dev%d: Failed to create physical_node sysfs link:
%d\n");
}
but like you had said unnecessary braces, and only one statement
I'll look at this some more too see if I come up with anything.
Justin P. Mattock
--
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