Re: [PATCH] scripts:checkpatch - Do not give error if static bool or global bool variables are assigned to false value.

2015-05-26 Thread Joe Perches
On Wed, 2015-05-27 at 08:43 +0530, Shailendra Verma wrote: > Hello Joe, > > Thanks for the clarification. So I will change the error message as > suggested by you and will send the patch to you. Hello Shailendra. My humble apologies to you. I totally misunderstood what you were writing. I guess

Re: [PATCH] scripts:checkpatch - Do not give error if static bool or global bool variables are assigned to false value.

2015-05-26 Thread Joe Perches
On Wed, 2015-05-27 at 06:39 +0530, Shailendra Verma wrote: > The bool value false is not always to be 0. By definition (7.16 Boolean type and values ), false is integer 0. Setting a boolean variable to 0 is equivalent to setting it to false. What I think you mean is that a boolean variable can b

[PATCH] scripts:checkpatch - Do not give error if static bool or global bool variables are assigned to false value.

2015-05-26 Thread Shailendra Verma
The bool value false is not always to be 0.So this patch will prevent for error if static bool or global bool are initialized with false value. Signed-off-by: Shailendra Verma --- scripts/checkpatch.pl |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/checkpa