Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754936AbbLKMk1 (ORCPT ); Fri, 11 Dec 2015 07:40:27 -0500 Received: from mail-vk0-f50.google.com ([209.85.213.50]:36105 "EHLO mail-vk0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753073AbbLKMje (ORCPT ); Fri, 11 Dec 2015 07:39:34 -0500 MIME-Version: 1.0 In-Reply-To: <566AC1F8.6010802@cogentembedded.com> References: <1449827205-3967-1-git-send-email-geyslan@gmail.com> <1449827205-3967-2-git-send-email-geyslan@gmail.com> <566AC1F8.6010802@cogentembedded.com> Date: Fri, 11 Dec 2015 09:39:33 -0300 Message-ID: Subject: Re: [PATCH 2/2] usb: serial: remove redundant condition From: "Geyslan G. Bem" To: Sergei Shtylyov Cc: Peter Senna Tschudin , Johan Hovold , Greg Kroah-Hartman , linux-usb@vger.kernel.org, LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 37 2015-12-11 9:30 GMT-03:00 Sergei Shtylyov : > Hello. > > On 12/11/2015 12:46 PM, Geyslan G. Bem wrote: > > It's a bad idea to send 2 different patches with the same subject. I'd > use "mos7840: " as a prefix in this case. Sergei, tks for the advice. Johan already applied for next. > >> This patch removes redundant condition. >> >> (length && length > 5) can be reduced to a single evaluation. >> >> Tested by compilation only. >> Caught by cppcheck. >> >> Signed-off-by: Geyslan G. Bem > > [...] > > MBR, Sergei > -- Regards, Geyslan G. Bem hackingbits.com -- 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/