Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2675443pxb; Mon, 11 Jan 2021 16:52:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjYoODzd+c3o8ZoZtnGCStMD8PP4IZ3HaS7/u6Q4WGt/m6IlHOPq66BdtMXtYyjlnMN+bG X-Received: by 2002:a50:b944:: with SMTP id m62mr1391467ede.182.1610412774902; Mon, 11 Jan 2021 16:52:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610412774; cv=none; d=google.com; s=arc-20160816; b=T9o8YMmWIv96RUjLHxX8oujDavRLEOWVioYJ37kzWpZi3vgcFeZ7LVB5JPr/ytlS4M LEwAYOXzmVIrZ+IV9z9UEEt9+uAfVEFvE4m64BAjxHm27KWEyznZm66QkTZJ2FeqnsxJ Hhu9uJV4arbpRSO3V1JAwNCck7Exd/6iUJP/u7XQiX7XiC9qgDW7m0PsqT60Hf26Qcge //4mMLSwlwS0L7f7Gcofbq88Xu107llGKr6iH2GuGzFnRPo1y+dELto4hj2uFglvQBsL RO/6UbbjP1GbVHkilbqnX4W1wKELM4TWwm9wQH/SSh0NMw+XI4QfXNI4kcOuNA4mN/5l k5tw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qfzFWPNWVyA4xVKSb+tMjkPPkxXTS7TQ5SMI+nxlr/g=; b=D4K82xxyBhdtVJYvDOixnP0libkU7ELJzDDbAOjsxNEcwFctu6TUD0CnUBRSWHuUbO CUcG+AMXJjcam+n7l75FScs5O8uzNp/IWDHeRuqH5xa51hkVrKGy731faEooN2q5U5nC DKhysWzbfPXRFvyc5BZARNBZqArvnrZte4LUAV10bYRhMSY0iFrVkBPkgPufXpOi2MF0 v6GXCPmHMl8d/bMMT12KS3VAhnPTM1ow17LNqJVDbf+/Z+8eWvfWnRGZdmfn6IUldEsb pr2fAxoe3gIbWRQw4+Hi6wzOngxei0rfNuR2+y4XdAukjRp0PXC8TjjcU5TnF1U8L+PA Ru5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=K7sqV5d9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m15si564794edp.363.2021.01.11.16.52.31; Mon, 11 Jan 2021 16:52:54 -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=@linuxfoundation.org header.s=korg header.b=K7sqV5d9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731762AbhAKNNQ (ORCPT + 99 others); Mon, 11 Jan 2021 08:13:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:59254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730999AbhAKNMa (ORCPT ); Mon, 11 Jan 2021 08:12:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2CD8E2255F; Mon, 11 Jan 2021 13:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370734; bh=TDmRcODaA1zi6IDRn+XzSDrBCs4+1dO5A6xNwn0w2fE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K7sqV5d9iJmK8l5EKr09XVUqHXAA5jFb1K0sdoV4Xaxwi7GXice6yEY6AQ33LNprA JB6bNDuTkZ9RpkQpMAw/DMOoQ7H/avz8TRhz9OhKMImtLHlzMoJW4ocdygTosT/+wl 8L11F19jYjrZ0JzXX+ZUeYwgJq+uMr975FQ1Gs+E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Johan Hovold Subject: [PATCH 5.4 75/92] USB: serial: keyspan_pda: remove unused variable Date: Mon, 11 Jan 2021 14:02:19 +0100 Message-Id: <20210111130042.768400152@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130039.165470698@linuxfoundation.org> References: <20210111130039.165470698@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johan Hovold Remove an unused variable which was mistakingly left by commit 37faf5061541 ("USB: serial: keyspan_pda: fix write-wakeup use-after-free") and only removed by a later change. This is needed to suppress a W=1 warning about the unused variable in the stable trees that the build bots triggers. Reported-by: kernel test robot Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/keyspan_pda.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c @@ -555,10 +555,8 @@ exit: static void keyspan_pda_write_bulk_callback(struct urb *urb) { struct usb_serial_port *port = urb->context; - struct keyspan_pda_private *priv; set_bit(0, &port->write_urbs_free); - priv = usb_get_serial_port_data(port); /* queue up a wakeup at scheduler time */ usb_serial_port_softint(port);