Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754796AbbLJPhi (ORCPT ); Thu, 10 Dec 2015 10:37:38 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:58480 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005AbbLJPhf (ORCPT ); Thu, 10 Dec 2015 10:37:35 -0500 From: Felipe Balbi To: "Geyslan G. Bem" CC: Peter Senna Tschudin , Greg Kroah-Hartman , Johan Hovold , Robert Baldyga , , LKML Subject: Re: [PATCH] usb: remove redundant conditions In-Reply-To: References: <1449712366-31365-1-git-send-email-geyslan@gmail.com> <87twnqjpzy.fsf@saruman.tx.rr.com> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Thu, 10 Dec 2015 09:37:26 -0600 Message-ID: <87r3iujow9.fsf@saruman.tx.rr.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1824 Lines: 57 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, "Geyslan G. Bem" writes: > 2015-12-10 12:13 GMT-03:00 Felipe Balbi : >> "Geyslan G. Bem" writes: >> >>> This patch removes redundant conditions. >>> >>> - (!A || (A && B)) is the same as (!A || B). >>> - (length && length > 5) can be reduced to a single evaluation. >>> >>> Caught by: cppcheck >>> >>> Signed-off-by: Geyslan G. Bem >>> --- >> >> I guess you didn't get previous comment in time; let's split this per >> driver so different maintainers can pick their parts. > > Okeydokey. :) thanks :-) =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWaZw3AAoJEIaOsuA1yqRErskP/3Dm0eRHtsaO2y51hRUHQeae iSjh58slUenG9z6gTqfRxHRUvfwTamIOy32PUthfbloEVKiao4O042f0gT+LuQZO E6NYzVFSsekATrhOT4RgnbWhYv1avVlNX2kZV71GdyjV8ypDtKRtOHicZHFDRzeB Shc/ZpORxfLd6uWGoGXrDhpiS2cYZV2JL9g79C53DXMwTrWXoRYzLsnE11V5HKWO 9ZyUEtDqq8IKIGw+c3aXQpLnC9NzuSlBQN9gq8Hy2FT2GbY4b56m/7mPehNmsPgU GaYQIKJXjmXgyk8Bj7b2ymotp8KiCbp7/Nq/h4s7cpG32OwNE+ZiKeFzjrR2BlVd VCyO+xqjwvtolcbQQS7OeK6z2goEdVFNjImTV7P8+ftedDwrUC5A6tJ+ldHZxjYE 8DKS6lHhyy+NWhm9TeCtAqEokhqF8w7MTkRd8oEhyESwW/ZabX7ovdNQ4m/cP/Ow 6hoRmMx/BjMtAj7YW8ffKpOIcIT1bM4BNtxgfrXN4yIe2OaJWW7SPw76DDPjiKuu uj7AeHijseAze4reGAofXL6CTzF33yzt5vzZh0Vthc4H388Wwke8Eo9lVREC53mM yFZsgmUNnbQ6RLi5q/WnTIe7wBPyA7p0HZFuQ7gX5WFU4QLjL65C/i4GYtODd4Y7 +KAhQpOFvSm854xdnqDq =OuC2 -----END PGP SIGNATURE----- --=-=-=-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/