Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp647993pxu; Fri, 11 Dec 2020 10:45:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyIfMU5Lwaqa3c3gP+A3wNnIHXacVszG2774/9/p0vQ7EQyacowjqs4FygsrhIHp24Hm88 X-Received: by 2002:a17:906:b793:: with SMTP id dt19mr12212760ejb.120.1607712347476; Fri, 11 Dec 2020 10:45:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607712347; cv=none; d=google.com; s=arc-20160816; b=skbA0m2L7VTm8YGOhw0nSYL0ldzL6NSB8flL2RIpGFh5TjS3bpM+Bz2H8AIGkvOabR t7n7Z08PgKHARUkRcoJHk3Vu+LfInKU23BEmKJHQI6W79ZYesXT0srLW1E8qV8zWuYJN FWOm7MJbx28rzCABsFGJ5+GUn+8aWqUQI9pPGpMjduct1ewtG/rwvgY3jWnvDRnu+lao cfxDzKSaDexGYXtBwhY0hMHy0H2/0VALOYZ7hYghT5y22wuGmXm4kj+j338EVQdR6KqI IIFKPBKYz+68Sx33F69GkrHa0NeYXcUPAh6CE52VP7a6nOsHFgzgbmobJcINNNGWExUe E2hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bC8WONh2tQCFijLt1d4VZM3cwyRe7TFjbzcm5SUT/ak=; b=Jce3p0LUvFUaFGTbyzNokUmd06GGu+HeC6yhOY0AZ198rv/Lu1VbSTDr/FWrpyEfK7 txVqxHqLgNyAKj81ZUrIEXW6O/3J4KQTpkMORwkdEqfUijjtoqvF48xyZmNgyrVBxNlB FZiBHVwbJLvvPVsQ7wLFrn9TZcBNYQ/RckiD0DTVgTmJ/Ug8O1GE07K+u6BiERRV+ttw u4qDv/6duFgDH1IhhzeUWLaSTdbshOusHJnwEyqVvvqw4ZyuysIbFRrqbyw8jpveAI2X SIa7f1hP/aTzyi2e3uhEsNA5ThJ6LhFvv0tiDui+0BkYpUYg/ruLK0WhrvbK5pc3H9ZS vglw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=Xk19hsbO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si5138401edj.73.2020.12.11.10.45.24; Fri, 11 Dec 2020 10:45:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=Xk19hsbO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727376AbgLKQjL (ORCPT + 99 others); Fri, 11 Dec 2020 11:39:11 -0500 Received: from rere.qmqm.pl ([91.227.64.183]:55951 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726627AbgLKQim (ORCPT ); Fri, 11 Dec 2020 11:38:42 -0500 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4CsxKh6N6Yz4y; Fri, 11 Dec 2020 17:38:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1607704680; bh=wlzJNkez6J2t9nu5m8NwLeYJOsOC0Tc9BcqWs937qi0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xk19hsbOjTCz+ctO0H6kL/b0C9dOzMO4AViv7NBzTOx+GWKQt38MeR9m8lByUdyL5 46rlyc/eLS6ORO13YH8RA2IolJH6ZsDHz0cVHUZQGsv40TNgt71Kze+0wgorcjd+Ti FjQ1PE71LpP1KuqFPadSW13Aw/K3l4vCfyh9xejmKX39AN5XPzmHogdZPjfqV8ulNE ypjlqI1Ma6t7Rh9MBVnqVnLpRGN2d+yenqj7DpNSRdFo8GURW5XdwmqKt3xdIcYjKp zAGepEQyfhe9lcyuRYWsUHBCU67xbOkfSt65ZbIcy3lm4Kiab+lLVNjty1JUY4Q8R7 9PsukAsIQ/1Fg== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.4 at mail Date: Fri, 11 Dec 2020 17:38:01 +0100 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Dmitry Torokhov Cc: Dmitry Osipenko , Johnny Chuang , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND v8 3/4] input: elants: read touchscreen size for EKTF3624 Message-ID: <20201211163801.GB23095@qmqm.qmqm.pl> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 10, 2020 at 11:22:09PM -0800, Dmitry Torokhov wrote: > Hi Micha?, > > On Fri, Dec 11, 2020 at 07:53:56AM +0100, Micha? Miros?aw wrote: > > + > > + if (!phy_x || !phy_y) { > > + dev_warn(&client->dev, > > + "invalid size data: %d x %d mm\n", > > + phy_x, phy_y); > > + return 0; > > Given we are not treating this as hard error mind dropping this "return" > and making the below an "else" branch? It is an error, still, and saves a bit of indentation in the following normal-path code. But I see that there is already a similar code with an 'else' branch. Best Regards, Micha? Miros?aw