Re: [PATCH] trivial treewide: Convert dev_set_uevent_suppress argument to bool

From
Joe Perches <joe@perches.com>
Date
2016-09-02 00:52:02
Also in
linux-block, linux-fsdevel, linux-s390, lkml
Reply to
Bart Van Assche, 2016-09-02
On Fri, 2016-09-02 at 00:47 +0000, Bart Van Assche wrote:
On 09/01/16 13:11, Joe Perches wrote:
quoted
Assigning an int to a bitfield:1 can lose precision.
Change the caller argument uses from 1/0 to true/false.
Hello Joe,
Hi Bart.
Can you clarify how assigning 0 or 1 to a one-bit bitfield can cause a 
loss of precision?
There are no existing defects.

Using 1/0 is not a loss of precision, it's just
changing to use bool avoids potential errors and
promotes consistency.

Other uses of this function already use true/false.
Thread (7 messages) 7 messages, 2 authors, last reply 2016-09-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help