Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp494145lqh; Sat, 4 May 2024 09:10:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSbkRQ0VvvkclI1fKz66Nmg5E2lXVHgJ1nsLdRVHAT2fgrO//oVKUkbB+3BufiKPg4+KwI02zWksvdaHURjGCbK5HY6dQL/GAPkJAzlQ== X-Google-Smtp-Source: AGHT+IEfaLQZQdCXBdWU4cxrynTTUUqec9I1Fs3On7wXXdChT7xLuBjcaJSXTlWMpyeHq3k37ZKr X-Received: by 2002:a05:6808:dc4:b0:3c7:4547:31bf with SMTP id g4-20020a0568080dc400b003c7454731bfmr5970005oic.32.1714839046391; Sat, 04 May 2024 09:10:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714839046; cv=pass; d=google.com; s=arc-20160816; b=b/ShscXnxUd0VuezmwCLX8o2ePeEm/8w7BzCIUlJAXYuZP2luC4Gzov28Ib0i1PUk9 g1oNVEvR3xVtz/3oPZnN0fSi23Bv4e1QI2nq2ijK/NSOZu0CmZDbWkxX7ZDvA+7qAfDp b6tYDbLdktVfXZg3kVkHzfddz0cHLIhzLecjYsf3PYhVLJCrjleoCOCISv4sfBPBF4/0 5JfbLbY9bDiJc1k2GYwDmpWQXzGbmQKQTeC9rNR98q7CTrgvtH1NrK1aVXJzz4ujJliC g9GNB9qRDXWHOnMDQjDt/0i0jcIZ1XRH2Kbuo5OZa4mi81XfxeaslJFog+APpA0QYhVJ gxBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iuHJb67trJMiAjJBSjC+OtAMUrlrhvqA5Ghm9VNnGEs=; fh=39MFT67ssiGuYGJnjZVLnDTC5yV6nIF2UBeak+h/BeE=; b=ihiBX+B6U1fKLkynj5PAGu0cr66c+5GfbSxSM37z1vD5rJmVLheG51N4/BrIzy93hd jlbuLJS/kPsFGNb5WT+/FIx2RHqWpb92we+KXwT8oEIGG+Ml88eE6o1x27em6Sh/2CSh nyfyYiuzXDa2B7lkXWGxzlUtrHKXb8MW0AS9Y2p97L+qanrCffZaDBTFIqqLtSmJGtj+ F7TbM7pzBgnSSkY2r7mH8nIdF2kj5/kaeWKp4tKZyuu6pcAYW2kUUrfJmSnaJKbL0oAi 0s5YByuY61TtIdmb7mVf29tyYQ6X+w+sKaMSoS3iYpUCDH/S3OEVHNaZ/aP2QU3PJZMV 6gBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tFVWEOHM; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168744-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gm12-20020a056214268c00b006a0ca603c3fsi2998598qvb.200.2024.05.04.09.10.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 09:10:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168744-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tFVWEOHM; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168744-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1D77F1C20C31 for ; Sat, 4 May 2024 16:10:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C639A524BE; Sat, 4 May 2024 16:10:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tFVWEOHM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA1EE40C03; Sat, 4 May 2024 16:10:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714839040; cv=none; b=ZN/EcLySboh7j+bY+2ThQQ/WOO4VGc382GPnc3M8DBV86rGHJhN70RjpnL69SVYThaKUx26FoWsDJTzUSJGLHLxJV2MGHPY3pVKss6eP55bKrcatyTXfve5M6I0k56besuGIlaXiQ0miKn2PA6oIGmu7dnzz2CwUOjEH/cw51Es= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714839040; c=relaxed/simple; bh=VuPfx3OXc2YATbajz+aa7ONlNhqPwnL1gJRjSxvcFeY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pKQZhEwznKc1njMjzvzu88yik/C4PNyxw3g82YuuO4XZDhDuMwlVOKap8oosozn3LlgPAvX1oMsQvU5CGyfz+bjU62KWK3P9DyJLZgE35JCwrUr/eezRIZ5T1JIcBVRMhy1uFggEN6T8ucT2F9NKnkjTsatppUNQUYazXITg/rY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tFVWEOHM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3ABBC072AA; Sat, 4 May 2024 16:10:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714839039; bh=VuPfx3OXc2YATbajz+aa7ONlNhqPwnL1gJRjSxvcFeY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tFVWEOHMLRl4NYynXslO2vR/2q/Jbh+fG6WKYMDWXIg09QRcCewcYnQguhq/AXqg1 w3TAuR0lanHakc6LS/4z+v5eD8sO38efj/o7i1KdVvdQ417MP8K0BSJNaSkVQAG5dv M++InNvoduw1QenOiXzwAvXMmcmzgRWTLrB4pUy4= Date: Sat, 4 May 2024 18:10:36 +0200 From: Greg Kroah-Hartman To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: Andy Shevchenko , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH 1/1] serial: 8250_pnp: Simplify "line" related code Message-ID: <2024050421-daredevil-excess-3b96@gregkh> References: <20240423134930.67033-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240423134930.67033-1-ilpo.jarvinen@linux.intel.com> On Tue, Apr 23, 2024 at 04:49:30PM +0300, Ilpo J?rvinen wrote: > 8250_pnp sets drvdata to line + 1 if the probe is successful. The users > of drvdata are in remove, suspend and resume callbacks, none of which > will be called if probe failed. The line acquired from drvdata can > never be zero in those functions and the checks for that can be > removed. > > Eliminate also +/-1 step because all users of line subtract 1 from the > value. > > Signed-off-by: Ilpo J?rvinen > --- > drivers/tty/serial/8250/8250_pnp.c | 16 ++++++---------- > 1 file changed, 6 insertions(+), 10 deletions(-) Doesn't apply to my tty-next branch, can you rebase and resend? thanks, greg k-h