[lkml]   [2016]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] regulator: core: Assign bool value to variable has_full_constraints
On Mon, Jul 04, 2016 at 10:05:25AM +0800, Baoquan He wrote:

> In commit 21cf891a (regulator: Make regulator_has_full_constraints a bool)
> type of variable has_full_constraints is changed to bool, so assign 'true'
> to has_full_constraints here.

There is no need to make changes like this, C has full support for using
integers in a boolean context - using true here would've been just as
meaningful with an integer variable and using a number for a boolean
variable is fully equivalent.
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2016-07-04 10:21    [W:0.042 / U:2.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site