Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp448801lqt; Fri, 19 Apr 2024 00:01:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHUHSuBYGBuufI8xhQ3ULL6fQgKipSDibqMxAsJk3+SNCyAverQ+Gg3Zh45G5Yrtr5E04LUFKJhepueLp1i8KgSalGN1tryH2TraRZUw== X-Google-Smtp-Source: AGHT+IFQzmDqKfLOiK91vtwu1q7NPK5hkmXk5hRfOEZbvNTyyVVo4aKdeFJxRNsrltZrp0ZMCsjY X-Received: by 2002:ac2:5188:0:b0:516:d09b:cbe4 with SMTP id u8-20020ac25188000000b00516d09bcbe4mr968306lfi.53.1713510100126; Fri, 19 Apr 2024 00:01:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713510100; cv=pass; d=google.com; s=arc-20160816; b=wLBfKcKar0izt/0SYH6bf3vkAZ0dktMfN7t6ay8NmWGke42PmJGG0FgfHMh3UtaZ8b N+Do4oIqvK5lzjVAppyl/emZxPh8Sy942mSqPY8gukVqeRJ+ILK+5NmhJ9wx00OKHC25 g+aag6vPYE+lbhbnelS6DBemRM0CcuJiggCYsWx1CwC7snWvVeEroz6x8/BolI9jAi0S d1TGrfzD444cbk1ftiUeedtu9RdfMkgjO/OYI8elx3aGXJQ1JBL8XYkBY1RWl6Ue3idv vwnNrz2ScMqczHadgzzTEY/PSW5p6aIJjpurbyy0/JH0uuzv/seeGQojHp1DHai4BjNT L/wA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=1E/MdAMpPbSlbHO+k6ZK0j1SLtIJtidvuVwVd4MJDGw=; fh=flBMwsOw7vpIVXMIMyjmFl8pK79BKLvyo/A+ZlgRuvc=; b=hvNOS39nxjbpNLfqCLevN0Xyv7TLcjhqQiQ4oW+tbEqm4gE1MqYZ2QbY60ZXWhaBeW MossNsZVbIwpuM6VAG01IbDP9Q2qNi7xjpmrdMNemAhorY+mWT/ogcu3CDYkbysNiX2k +6d+7BFU7hvwIyRMSWbrEt5gpaItr8HOUkDV/kkNFraIRIgwPBcznXM8v+5wfsewCK9G cwMW+58eTEJsqoaI3x8jAohsgZZC3MF4ks0SHpeoH8isgL+xKlv1NZ9oc4obMd4VxWpr W6QDCJIFZ0Ep4LXEwOrhhcI3crNSeofrtpgAimgDeiUlPlHqjCtHlBpaup/vQZn9v2nN P7Jw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-151078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i1-20020a17090639c100b00a5225b8f6a1si1854993eje.913.2024.04.19.00.01.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 00:01:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-151078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9E2D31F2227B for ; Fri, 19 Apr 2024 07:01:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D75813BBFE; Fri, 19 Apr 2024 07:01:30 +0000 (UTC) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30D479473; Fri, 19 Apr 2024 07:01:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713510090; cv=none; b=cvV1CD4nhdZj6z6tFnY5hFdUiw6uDlvwHZZ7qi65Yx61d2x3CpMTRoVzea71uj3AfW1NClSns+i7BdyuxPHocihIcjpPc4/cc8Kr9OBYcL/5SmEg1Mw8mgEu0Hk1PKmCsrnQA3aBJr8Bas0IG47ZP1GiSzE5YVaSIjXQt/gpV6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713510090; c=relaxed/simple; bh=sH1bmGiqxkK0mQrxS4tP7f19KIwVvxNpbYcGXlJTqRg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gsK+pOaIpu21YcVAzdpzk3pSjAx/eGXjBHlWXCTCkAj3y8X3RG1CD3noE+JOKMdCj6TM3cUD5wSDdvkEVdTn99Szj6tJqX6CbkCl+qwUQ4LwBaJB7hZiunECJ/sjd31Qh0j9KqsvSJ8LqZ0GiyIjAzlAnOQasV1qJj2cZB9x0MQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2da08b07157so20685561fa.1; Fri, 19 Apr 2024 00:01:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713510084; x=1714114884; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1E/MdAMpPbSlbHO+k6ZK0j1SLtIJtidvuVwVd4MJDGw=; b=ccizK8AmLWpip/v5iWbiQU49gkVvk7Z6SB9HqOIYkBkBKUgwTlTn5QrXlLrOMSh5l6 vU8brALV4zb6BUH657GFoMtoDR6BP2VakW4/UDN/NyuRKdmx/fHYVcuGVdCExLGSVWsq LVFHyibm8qZjyc1E++7jdd1Pil5NaiOs0hAb+hUXOt7j76/jz0YOflSvdf0K6Ifg1LNh AJIFcalHVFGZ+DVDWcvh9nQpt2bHnZLR05PsNYcjMG3uadMzwthk2nybOJmMYKEF5o0G pRUDavwQ8DBhMKeeP5iqRzv4ZzEocTWztpcVyUHszhBjL/wrtkHw9+UoWnazZ++544R/ GIag== X-Forwarded-Encrypted: i=1; AJvYcCVbykx8u4++s+2DFURX5Qfm+ORE15rOlSdTCIOEtlhQGtqAtBKUYJzo7+pYWTZAsrlybpzkaqxz19ZiPA0OFrGsH7mjFe7m4OtUOhnO X-Gm-Message-State: AOJu0YzEkfmyAeWfYkb956lWbMy5YfrPm21xWOvhmlV0UeUUr0ac1ccj GGIEjNZwGqBt+5LGMPSsZij2OUtsnoWJqFwoya7Oh9ZMXQ+dZzP0TTwzqQ48 X-Received: by 2002:a2e:97d4:0:b0:2d6:8868:f1a6 with SMTP id m20-20020a2e97d4000000b002d68868f1a6mr807106ljj.43.1713510083993; Fri, 19 Apr 2024 00:01:23 -0700 (PDT) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:69? ([2a0b:e7c0:0:107::aaaa:69]) by smtp.gmail.com with ESMTPSA id ko18-20020a170907987200b00a5565ee5c24sm1808580ejc.0.2024.04.19.00.01.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Apr 2024 00:01:23 -0700 (PDT) Message-ID: <4a7a1c35-f1f6-4ed3-ad57-d71891220219@kernel.org> Date: Fri, 19 Apr 2024 09:01:22 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 3/4] serial: exar: remove unneeded parenthesis To: Greg Kroah-Hartman , Parker Newman Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Parker Newman References: <1dbe1847d92dd34d223c6dc6b5cd0731b78e98e5.1713452766.git.pnewman@connecttech.com> <2024041951-paradox-stable-320e@gregkh> Content-Language: en-US From: Jiri Slaby Autocrypt: addr=jirislaby@kernel.org; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKraekbNE0bC4zV+ryvH4j rrcDwGs6tFVrAHvdHeIdI07s1iIx5R/ndcHwt4fvI8CL5PzPmn5J+h0WERR5rFprRh6axhOk rSD5CwQl19fm4AJCS6A9GJtOoiLpWn2/IbogPc71jQVrupZYYx51rAaHZ0D2KYK/uhfc6neJ i0WqPlbtIlIrpvWxckucNu6ZwXjFY0f3qIRg3Vqh5QxPkojGsq9tXVFVLEkSVz6FoqCHrUTx wr+aw6qqQVgvT/McQtsI0S66uIkQjzPUrgAEtWUv76rM4ekqL9stHyvTGw0Fjsualwb0Gwdx ReTZzMgheAyoy/umIOKrSEpWouVoBt5FFSZUyjuD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JVfEJW9JXp3BFAVzRQ5nVrrLDAJZ8Y5ioWcm99JtSIIxXxt9FJaGc1Bgsi5K/+dyTKL wLMJgiBzbVx8G+fCJJ9YtlNOPWhbKPlrQ8+AY52Aagi9WNhe6XfJdh5g6ptiOILm330mkR4g W6nEgZVyIyTq3ekOuruftWL99qpP5zi+eNrMmLRQx9iecDNgFr342R9bTDlb1TLuRb+/tJ98 f/bIWIr0cqQmqQ33FgRhrG1+Xml6UXyJ2jExmlO8JljuOGeXYh6ZkIEyzqzffzBLXZCujlYQ DFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmffaK/ S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= In-Reply-To: <2024041951-paradox-stable-320e@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 19. 04. 24, 8:58, Greg Kroah-Hartman wrote: > On Thu, Apr 18, 2024 at 11:36:30AM -0400, Parker Newman wrote: >> From: Parker Newman >> >> Remove unneeded parenthesis from several locations. >> >> Based on feedback from: >> Link: https://lore.kernel.org/linux-serial/f2353b8c-2079-b895-2707-f6be83161288@linux.intel.com >> >> Signed-off-by: Parker Newman >> --- >> drivers/tty/serial/8250/8250_exar.c | 28 ++++++++++++++-------------- >> 1 file changed, 14 insertions(+), 14 deletions(-) >> >> diff --git a/drivers/tty/serial/8250/8250_exar.c b/drivers/tty/serial/8250/8250_exar.c >> index 01748ddbf729..10725ad0f3ef 100644 >> --- a/drivers/tty/serial/8250/8250_exar.c >> +++ b/drivers/tty/serial/8250/8250_exar.c >> @@ -317,7 +317,7 @@ static inline u8 exar_ee_read_bit(struct exar8250 *priv) >> >> regb = exar_read_reg(priv, UART_EXAR_REGB); >> >> - return (regb & UART_EXAR_REGB_EEDO ? 1 : 0); >> + return regb & UART_EXAR_REGB_EEDO ? 1 : 0; > > Again, spell out the ? : stuff here please. Using () isn't the problem :) Could this in fact be inline bool exar_is_ee_set() (or alike) and return that regb & UART_EXAR_REGB_EEDO directly (w/o using ternary at all)? thanks, -- js suse labs