| /// Remove unneeded conversion to bool |
| //# Relational and logical operators evaluate to bool, |
| //# explicit conversion is overly verbose and unneeded. |
| // Copyright: (C) 2016 Andrew F. Davis <afd@ti.com> GPLv2. |
| //---------------------------------------------------------- |
| //---------------------------------------------------------- |
| //---------------------------------------------------------- |
| //---------------------------------------------------------- |
| //---------------------------------------------------------- |
| //---------------------------------------------------------- |
| @script:python depends on r&&org@ |
| msg = "WARNING: conversion to bool not needed here" |
| coccilib.org.print_todo(p[0], msg) |
| //---------------------------------------------------------- |
| //---------------------------------------------------------- |
| @script:python depends on r&&report@ |
| msg = "WARNING: conversion to bool not needed here" |
| coccilib.report.print_report(p[0], msg) |