Re: [PATCH] Coccinelle: Add misc/boolconv.cocci

From: Joe Perches
Date: Thu Jun 23 2016 - 15:13:13 EST


On Thu, 2016-06-23 at 13:53 -0500, Andrew F. Davis wrote:
> Add a script to check for unneeded conversions to bool.

this could also be extended for bool functions that:

return !!expression;
and
return expression != 0;