From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5E29C433F5 for ; Fri, 13 May 2022 07:11:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377690AbiEMHLe (ORCPT ); Fri, 13 May 2022 03:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbiEMHL3 (ORCPT ); Fri, 13 May 2022 03:11:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19CA62EA24; Fri, 13 May 2022 00:11:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AA80061ED9; Fri, 13 May 2022 07:11:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10969C34100; Fri, 13 May 2022 07:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652425887; bh=IW0lVa2ye/pD/vmsXD4u9wgZeVqrrjSpYDBsxZfka0w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rhzvVE8CcQgZuzfBfjAJ4LedLEHg8UGBQqHBSZRS68AK5kj4NXBGU34pDRkNT+uh1 nqQLI7igjHsVzNx/UL4sA3CwhhQd45cxnWOoTsTqwN3P0DpcLBxhDLJj/8uKGVr1hO CvVfMxTZwHoC8dR2jq44Ar6N8Ln8+Njd8FV10OedPvJD+L52JrrrzHDG3jd6GCpGR9 s4gjYiCFM/2iWo99+AuzpYr7XLz4br17DKoqpfi9IoLZVt61DJf6GVSBJKckAac4LH u1q6z9G293mVAIpM4P/jfoNCE/5l8mfHTAYs6jFrIPvnJwIy98ef9REdSvJoiov93P XkGd/IpBJh8cA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1npPSN-0006fZ-II; Fri, 13 May 2022 09:11:23 +0200 Date: Fri, 13 May 2022 09:11:23 +0200 From: Johan Hovold To: Ilpo =?utf-8?B?SsOkcnZpbmVu?= Cc: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/5] serial: fsl_lpuart: Remove unnecessary clearing for CRTSCTS Message-ID: References: <20220511101139.5306-1-ilpo.jarvinen@linux.intel.com> <20220511101139.5306-5-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220511101139.5306-5-ilpo.jarvinen@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 11, 2022 at 01:11:38PM +0300, Ilpo Järvinen wrote: > if (termios->c_cflag & CRTSCTS) guarantees that CRTSCTS is not ever set > in the else block so clearing it is unnecessary. > > While at it, remove also one pair of extra parenthesis. > > Signed-off-by: Ilpo Järvinen Reviewed-by: Johan Hovold