From patchwork Wed Nov 4 16:24:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320557 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp5568652ilc; Wed, 4 Nov 2020 08:26:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPkcHMuAl1HYyDyGBT+9lqLin9V3znF58Rz/E2luuid14GboBQq6r2fqN24dP14lJkLoud X-Received: by 2002:a50:d751:: with SMTP id i17mr28138883edj.337.1604507166688; Wed, 04 Nov 2020 08:26:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604507166; cv=none; d=google.com; s=arc-20160816; b=ihG9sDRdtCpw38i/dPPtUKPSVPVYM2VQ5pYxHzgNcSs9umMxBfaAjOicwH6c4o1SSN D8m/tKq2RhnCnYTpKiBS8RizMisJqcn0Xdm+pmbF2Y74JMwrvjwgfn6SSns9xvgP8yyU QmFinWbkSFEcfMRunpuWbiUyO13UQfmwzC5yKGWbdwIawxwstidQPvCGHrYQg6ZngBBv kJhrTkcKeSI8bRM5wKu1SU6gBXxRMYF+K5TSFn7giq9pJ18hHgYApigwYjS+owDy/SCu VE/xWVAfAOa/mcC9cjjWCXuyvhSu9rWZFQNg0lmPyfMkT85S+YUxHTt/CSZqUHYpW8m3 0ldw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hwyOazzO/GQzyuqblzZOtq9SwXpd1xEL9uFxk2jvFF4=; b=f9zzGI2uY5JoojE3iBm3nxruOUC+l+gMDrXbQQ2Ph24T6AT/FxY+LqLQ/H8pBiinIC UJhIqVKzpqm24IsyTGk/phpdnKB065FCxfij8Pn2yB6JLI5YyifC0rn37y6k9Ih7EE1c ZlAtZgckSicuGqMWYlNRRnHF1Wtszrss13nQRq/1uB8HbFSEvAy2oi/EdIDRVGKDSXvB FEVSDAT7vWG7jmulBOlIsKREQsM3Iwu/DocafzhsMRPV7+PRnLRxkyn6DtiqMkGAhXvH Pe0zqPWJl3+Y4HouX8COeLiG3KxGVuRjTzvVk/XS+OBOWpAluK+usQn1DedlJtMcoVf5 79Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zo4HwqwM; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn28si1883182ejb.585.2020.11.04.08.26.06; Wed, 04 Nov 2020 08:26:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-input-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=@linaro.org header.s=google header.b=Zo4HwqwM; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730922AbgKDQ0F (ORCPT + 1 other); Wed, 4 Nov 2020 11:26:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730933AbgKDQY4 (ORCPT ); Wed, 4 Nov 2020 11:24:56 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA951C061A4A for ; Wed, 4 Nov 2020 08:24:55 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id c17so3339713wrc.11 for ; Wed, 04 Nov 2020 08:24:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hwyOazzO/GQzyuqblzZOtq9SwXpd1xEL9uFxk2jvFF4=; b=Zo4HwqwMwEFUkSUixNvB41J5S0n/ImVso05y2fPLD//YtKZoVyJZRsOIzRR15+ueRx f+08bnoAreTE/Zhg0kiSmLb9NGmSpPepV3WbxvG25tFxr8hZY+2DXSiR/7G1CbDxKFCH 5Rh3XQPBQwgHFwpUMdOCKhh8KLCZ6GJmjmlJ+CEOorScoa38PZNA9lMcnrnW35kBIpwY gcwdgojBD4Wr0Dn9cK4xJIBEY7xsPsBvA4A0CwgtBn5Ar7grsTDoz1y/ut5c0yhecUMu seB5bdhJBBHk53BYEVQf0k3NfMQfu/Y3onv5oGbMVcXYkFJqpVThXv50LoLr1hgJfNc6 xZjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hwyOazzO/GQzyuqblzZOtq9SwXpd1xEL9uFxk2jvFF4=; b=lW0x2fuf5kAglMzX9QGjH5FLoguUMjG8NVQ35Yaz+mQ7pPvxRR7kr9eMdS9h/tEfPz pJESoijOi69MzPg09hsmdFW22G8/gEk4ff5GVtGpuCx5iiuqLECBxfgExb/vNXngFJdh qqJN871sab7xq9iku8jJ/UOmvihwEjbTBu0aa+rxvnJwEYm8V1hoDUSbu6pwC+qgHwnJ Oe1o8m4wc/tsWgXPELhgiAivOAlwQ6ADtpH3qGFJuabeEHdFZ0qMQrB/MVzPYnSMMxnl EHt/zm879tUNuVeKy2C/5ITxOX2aZFb3TUhY5P399dxWNXhaIYwFzAhx+T6SVcRz4YFa jLNw== X-Gm-Message-State: AOAM532UwuVbJbi+vI8WCnlCq7xMlfWLcpDOpWkJVgiLw8p6EtuP3I0b bkWyfGRybe9VG/z7ajkWyGCLEPRKDY+jkOab X-Received: by 2002:adf:80eb:: with SMTP id 98mr7667239wrl.101.1604507094427; Wed, 04 Nov 2020 08:24:54 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id o129sm3008564wmb.25.2020.11.04.08.24.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 08:24:53 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Dmitry Torokhov , Henrik Rydberg , Peter Osterlund , Stefan Gmeiner , "C. Scott Ananian" , Bruce Kalk , this to Subject: [PATCH 10/20] input: mouse: synaptics: Place braces around empty if() body Date: Wed, 4 Nov 2020 16:24:17 +0000 Message-Id: <20201104162427.2984742-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201104162427.2984742-1-lee.jones@linaro.org> References: <20201104162427.2984742-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/input/mouse/synaptics.c: In function ‘synaptics_process_packet’: drivers/input/mouse/synaptics.c:1110:6: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] Cc: Dmitry Torokhov Cc: Henrik Rydberg Cc: Peter Osterlund Cc: Stefan Gmeiner Cc: "C. Scott Ananian" Cc: Bruce Kalk Cc: this to Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- drivers/input/mouse/synaptics.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 82577095e175e..07835939d83b9 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -1106,8 +1106,9 @@ static void synaptics_process_packet(struct psmouse *psmouse) num_fingers = hw.w + 2; break; case 2: - if (SYN_MODEL_PEN(info->model_id)) + if (SYN_MODEL_PEN(info->model_id)) { ; /* Nothing, treat a pen as a single finger */ + } break; case 4 ... 15: if (SYN_CAP_PALMDETECT(info->capabilities))