Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3125606ybi; Mon, 10 Jun 2019 05:00:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEIX/GMvWVuU1g1DIDBKeqRXhPymOqSbmnr2i5nafmdMxQT0Hlv4DyuMV3wAw91CIaRWRA X-Received: by 2002:a63:eb0a:: with SMTP id t10mr13873234pgh.99.1560168020575; Mon, 10 Jun 2019 05:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560168020; cv=none; d=google.com; s=arc-20160816; b=fKN0TmSOUzDxKXDQAq7cL3+xYPZpj5G5x5k8NEIXVl+CSYUaHeYpb3463vCt9nIvzC Wa84pbYoVRDl27LMu7d+x8bNrvDWA93IKWgE1WpcNial3ZUk1uO8n+G9sxn2uVjVA/Zm Du8nyPNZNbbzZqOutKdNBQGccI6MD2FCsnN9LJXW8AUwmV4Wd0qCy2ZPuTv+4WxOm/n5 E5GAk2pBZuDlpsVDqWtp2naCQZcZ84ybyX5dMc+V9aS8eQuhe57h2vPaJapBKfmR7KmS U7k1t5cv+UmMXJzujeWwMzel0SNMDFNinnXi2HHJNWPzm4nxc0RGfweutFxKOuazAz/l QDJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=g2UdBQMWNstRoaIUKNfLg5kI2WEHj6nQqspBKPdi3q4=; b=CU40zZFkScvpQwqHSJAFRlRmbJsc81/i5UkK41YVJqSueKBsQQ5l++fGUdIU4PUTPf oGydhXLFqvaWHOSH4+SmyIcXbkye4pVowznMfExqhXr3mMuDCWPegvqs9qINK7O95FEV XaH9+6eBVTvgnMy7JYVX3GomhVBGMKss8Lr/I192EI9EJpvt0R+aqUdQfl9aWniepmqU cAmJ3LqxklLQq40xzC1h0ajJpxm/5fiaeqQeXjFc3yoQ1K26JKSM9dv6jDpthbwy0Ltm T/k36zJ8CWkrxrsqOlUzV1rZB+vsymxYM8tOBGJZJCGCqPJBPyWWl62LXan9dlDAU78t CQPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33si744942plb.408.2019.06.10.05.00.06; Mon, 10 Jun 2019 05:00:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389432AbfFJLbO (ORCPT + 99 others); Mon, 10 Jun 2019 07:31:14 -0400 Received: from mx.socionext.com ([202.248.49.38]:48102 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388373AbfFJLbO (ORCPT ); Mon, 10 Jun 2019 07:31:14 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 10 Jun 2019 20:31:12 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 9D788180039; Mon, 10 Jun 2019 20:31:12 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Mon, 10 Jun 2019 20:31:12 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 05F791A04FC; Mon, 10 Jun 2019 20:31:12 +0900 (JST) Received: from [127.0.0.1] (unknown [10.213.119.83]) by yuzu.css.socionext.com (Postfix) with ESMTP id E62AB120138; Mon, 10 Jun 2019 20:31:11 +0900 (JST) Subject: Re: [PATCH] serial: Fix an invalid comparing statement To: Greg Kroah-Hartman , Jiri Slaby , Colin Ian King Cc: Takao Orito , Kazuhiro Kasai , Shinji Kanematsu , Jassi Brar , Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org References: <1558933288-30023-1-git-send-email-sugaya.taichi@socionext.com> From: "Sugaya, Taichi" Message-ID: <3757b7f8-32a2-4d79-ef03-09b3e7420c54@socionext.com> Date: Mon, 10 Jun 2019 20:31:11 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1558933288-30023-1-git-send-email-sugaya.taichi@socionext.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Does anyone have comments? On 2019/05/27 14:01, Sugaya Taichi wrote: > Drop the if-statement which refers to 8th bit field of u8 variable. > The bit field is no longer used. > > Fixes: ba44dc043004 ("serial: Add Milbeaut serial control") > Reported-by: Colin Ian King > Signed-off-by: Sugaya Taichi > --- > drivers/tty/serial/milbeaut_usio.c | 15 +++++---------- > 1 file changed, 5 insertions(+), 10 deletions(-) > > diff --git a/drivers/tty/serial/milbeaut_usio.c b/drivers/tty/serial/milbeaut_usio.c > index 949ab7e..d7207ab 100644 > --- a/drivers/tty/serial/milbeaut_usio.c > +++ b/drivers/tty/serial/milbeaut_usio.c > @@ -56,7 +56,6 @@ > #define MLB_USIO_SSR_FRE BIT(4) > #define MLB_USIO_SSR_PE BIT(5) > #define MLB_USIO_SSR_REC BIT(7) > -#define MLB_USIO_SSR_BRK BIT(8) > #define MLB_USIO_FCR_FE1 BIT(0) > #define MLB_USIO_FCR_FE2 BIT(1) > #define MLB_USIO_FCR_FCL1 BIT(2) > @@ -180,18 +179,14 @@ static void mlb_usio_rx_chars(struct uart_port *port) > if (status & MLB_USIO_SSR_ORE) > port->icount.overrun++; > status &= port->read_status_mask; > - if (status & MLB_USIO_SSR_BRK) { > - flag = TTY_BREAK; > + if (status & MLB_USIO_SSR_PE) { > + flag = TTY_PARITY; > ch = 0; > } else > - if (status & MLB_USIO_SSR_PE) { > - flag = TTY_PARITY; > + if (status & MLB_USIO_SSR_FRE) { > + flag = TTY_FRAME; > ch = 0; > - } else > - if (status & MLB_USIO_SSR_FRE) { > - flag = TTY_FRAME; > - ch = 0; > - } > + } > if (flag) > uart_insert_char(port, status, MLB_USIO_SSR_ORE, > ch, flag); >