c-common.c (warn_logical_operator): Remove unnecessary conditionals.
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 19 May 2009 15:41:17 +0000 (15:41 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 19 May 2009 15:41:17 +0000 (15:41 +0000)
2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* c-common.c (warn_logical_operator): Remove unnecessary
conditionals.

From-SVN: r147708

gcc/ChangeLog
gcc/c-common.c

index b59be3048ad74c34136f15c15ea85c26a6ffde7d..d73a52249d0ba3a5a57d9d11a0e2d56ce6b5498f 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * c-common.c (warn_logical_operator): Remove unnecessary
+       conditionals.
+
 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
index fadbdaa7d93bbe0946df470172c2889e5b8b9c38..74f48174ddce41cb2b26011a4af6aeb4f80cabe6 100644 (file)
@@ -1788,10 +1788,7 @@ warn_logical_operator (location_t location, enum tree_code code, tree type,
   if (lhs && rhs && operand_equal_p (lhs, rhs, 0)
       && merge_ranges (&in_p, &low, &high, in0_p, low0, high0,
                       in1_p, low1, high1)
-      && 0 != (tem = build_range_check (type,
-                                       lhs != 0 ? lhs
-                                       : rhs != 0 ? rhs : integer_zero_node,
-                                       in_p, low, high)))
+      && 0 != (tem = build_range_check (type, lhs, in_p, low, high)))
     {
       if (TREE_CODE (tem) != INTEGER_CST)
        return;