[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <530B7CA2.2050700@mvista.com>
Date: Mon, 24 Feb 2014 11:08:50 -0600
From: Corey Minyard <cminyard@...sta.com>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>, minyard@....org
CC: OpenIPMI Developers <openipmi-developer@...ts.sourceforge.net>,
Linux Kernel <linux-kernel@...r.kernel.org>,
Russ Anderson <rja@....com>,
Matthew Garrett <matthew.garrett@...ula.com>, lenb@...nel.org,
rjw@...ysocki.net, linux-acpi@...r.kernel.org
Subject: Re: [PATCH 2/3] ipmi: Turn off all activity on an idle ipmi interface
On 02/24/2014 10:57 AM, Dmitry Torokhov wrote:
> On Sun, Feb 23, 2014 at 08:23:35PM -0600, minyard@....org wrote:
>> @@ -1194,7 +1223,17 @@ int ipmi_set_gets_events(ipmi_user_t user, int val)
>> INIT_LIST_HEAD(&msgs);
>>
>> spin_lock_irqsave(&intf->events_lock, flags);
>> - user->gets_events = val;
>> + if (user->gets_events == !!val)
>> + goto out;
>> +
>> + user->gets_events = !!val;
> Why not have val declared as bool and let compiler convert as needed?
>
> Thanks.
>
Because I've been programming in C since long before there was a bool
type, and I need to change the way I think. Fixed, thanks.
-core
--
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