From patchwork Wed Mar 24 17:33:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 408186 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp603900jai; Wed, 24 Mar 2021 10:36:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1GvQOIVZBqcXFMVrLpDXpfnaIWd90g2ExHiVQuRR2gpMfniFNgoyosPYpTvGdLG7NUpET X-Received: by 2002:a17:906:51c3:: with SMTP id v3mr4964861ejk.497.1616607332395; Wed, 24 Mar 2021 10:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616607332; cv=none; d=google.com; s=arc-20160816; b=aK+hvfLu5QoKmSncd2MOhJd/WBp9LZs8ijFF9L03htraEF6tHFb26EPiYd571osw7j Aw9KEuPhy2sJ8j99L+iQcpTmKPudX0+tdUwGzV60QthSShHdFjUykwTMo0hoJ5fCgIWK QraUSbDXKw6l303WLUGzLsjFIyFZUsWJFlMfsOSY7VDRX7efen5xOF7+RjmXvqi5DKkx zvzv/eQfHOAq0av48KemXTTAHe7MqgDIHAalllprb/szXY6HOQHJtKXFy8AIWtHeSv1L NvJUWzlLNUSaaUPxw+g3Q5XOcV+3+mV0ROUkdVNEYCxxj8kp1BNDkt1sK4BR0K0EB4Yl /qpQ== 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=NvG+DHxLWGqXLwCLHTxA35O2VaR78VX0X5hX1fU7v18=; b=LymRTE1CPOWTVWY3OuwjMvsusbIRouJbnzhWzZ3w2vy2WRGCtF9VDeMkDPME62s6bS //N+RM3K9jThxbxn+5FLGF0UvtobXQ8Xs3C22OvKL4f3HyUb3+OEhSBKONeO+L4DuvI8 rp3TzKOzrOO2y64jJu1F1oB3GKj88SvvbJ8gM5mzFokWo4diY6L13+uNwjo6f7vBgWA5 JfGS2+2tXnFf8Dg3w1x52w3GKq3ldtMekL4sAtJVXfUB5y9K/l+GulGXUYRuPDL7sCV9 6OinhivDcGabDoF2Xtx+d8nhntQJAHmj7/lvdTs26mfvf7OZN9pFB8BDC3la7KJeaaDq OOmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HPyYRRGg; 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 z22si2324022edx.180.2021.03.24.10.35.32; Wed, 24 Mar 2021 10:35:32 -0700 (PDT) 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=HPyYRRGg; 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 S237321AbhCXReo (ORCPT + 1 other); Wed, 24 Mar 2021 13:34:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237263AbhCXRe1 (ORCPT ); Wed, 24 Mar 2021 13:34:27 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6B3BC0613EE for ; Wed, 24 Mar 2021 10:34:24 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id u5so34252480ejn.8 for ; Wed, 24 Mar 2021 10:34:24 -0700 (PDT) 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=NvG+DHxLWGqXLwCLHTxA35O2VaR78VX0X5hX1fU7v18=; b=HPyYRRGgq42DngHKdoEos7QCdzcGobUlfGRsMEkLTPONOCuw/ToZVKKZSNVGuLSZBw UgaPnE453P1VMWH5/ETJmqYKWGTzod2qRqHdZkBdVHgD7b9lwBPZZRSQYHBhU6wnOwLz IyydOsrIyUBajSfhvj2uBZjZLEXJIRdM8ahqu6d1wwebZDoint8OZdHq02nSa5lEMMp5 grv1EFyPVxsDcZuTFvxI5UEvsInVDJeayNsFiaGo+Kqpy9nqcYNrTpHG8Vz8JIkg7vkQ 1NJpCEXpUoeYOjdQs5fmiMuWy2h1StCCBesKCRw+2ZiQEk8FLaYgfZ/7+jUT8iNd6p4B eWbA== 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=NvG+DHxLWGqXLwCLHTxA35O2VaR78VX0X5hX1fU7v18=; b=pFQa4anZbYUVckroT3zVz9x2sepKar1cgQELnE7cFv+Ykr9HnHBbOzd2qt5EnFxtRL fiFEhU7qFQKlRJSyDY+ZFPViNy9g1XKfPdzCR2GQ3TH6oofwHQTRakaeYhN9zZ+i6TYe pvsH0+0pSHZu5PxUoNIRxrr6JilwONOwMY02tUqy1JeDK8Mv+U9s6jBl0yeWF8UgigTf Ai7LsRGCXk9jKPWoItwBcElkNwCuzZF97+11UR6pXPhXmrm7aPY8X4X0x/C5le9wBD9u ImF0d3paZmTKcEgp7zuleJ91qk4x0NnD8gNewX7pr6RkJQQ8zuncobnAFA5I9c2HycfM kdSQ== X-Gm-Message-State: AOAM533tP+Ca5sAxyRZIHmLh8KHI9R+cVkkNRHQSGc0XeP1NpzG5ob50 NetbpxWpJgtFSwCZG5mQB6vcyQ== X-Received: by 2002:a17:906:f0d0:: with SMTP id dk16mr5031350ejb.48.1616607263384; Wed, 24 Mar 2021 10:34:23 -0700 (PDT) Received: from dell.default ([91.110.221.180]) by smtp.gmail.com with ESMTPSA id p19sm1466367edr.57.2021.03.24.10.34.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 10:34:22 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Bruno_Pr=C3=A9mont?= , Jiri Kosina , Benjamin Tissoires , "L. Vinyard, Jr" , linux-input@vger.kernel.org Subject: [PATCH 15/25] HID: hid-picolcd_core: Remove unused variable 'ret' Date: Wed, 24 Mar 2021 17:33:54 +0000 Message-Id: <20210324173404.66340-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210324173404.66340-1-lee.jones@linaro.org> References: <20210324173404.66340-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/hid/hid-picolcd_core.c: In function ‘picolcd_raw_event’: drivers/hid/hid-picolcd_core.c:332:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: "Bruno Prémont" Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: "L. Vinyard, Jr" Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- drivers/hid/hid-picolcd_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.27.0 diff --git a/drivers/hid/hid-picolcd_core.c b/drivers/hid/hid-picolcd_core.c index 1b5c63241af05..bbda231a7ce30 100644 --- a/drivers/hid/hid-picolcd_core.c +++ b/drivers/hid/hid-picolcd_core.c @@ -329,7 +329,6 @@ static int picolcd_raw_event(struct hid_device *hdev, { struct picolcd_data *data = hid_get_drvdata(hdev); unsigned long flags; - int ret = 0; if (!data) return 1; @@ -342,9 +341,9 @@ static int picolcd_raw_event(struct hid_device *hdev, if (report->id == REPORT_KEY_STATE) { if (data->input_keys) - ret = picolcd_raw_keypad(data, report, raw_data+1, size-1); + picolcd_raw_keypad(data, report, raw_data+1, size-1); } else if (report->id == REPORT_IR_DATA) { - ret = picolcd_raw_cir(data, report, raw_data+1, size-1); + picolcd_raw_cir(data, report, raw_data+1, size-1); } else { spin_lock_irqsave(&data->lock, flags); /*