Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp474435lqi; Thu, 7 Mar 2024 02:51:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVyoA5F4WLK2rY0xuyrUQRvALMOIVJNjNdpOngliB1S+AwMl2A6FtRVUDUywrpKPqaddGxzsPyjmb/Sszn7u+edetI3koXgcRZn3MH79Q== X-Google-Smtp-Source: AGHT+IH/D8esGjKvv7ffugKJ8GKZiNNxrXdkKBbvlTWmb0tuKnloVQT6YZqmVzI2ImToa7h0IDEf X-Received: by 2002:a05:6808:211a:b0:3c1:c069:3316 with SMTP id r26-20020a056808211a00b003c1c0693316mr9400175oiw.21.1709808713075; Thu, 07 Mar 2024 02:51:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709808713; cv=pass; d=google.com; s=arc-20160816; b=tKEmLpyVT9D/BAtmDPfB6hJvjgUp0UWcE0gh2oTVA/YszIRbJQrtf66Kxq+e9yjInn 9bQWQQixq/0pbCV2I525oqlZk9kgo5Wv4KnePoFFk9reXR+i98WIw4atkdggp2VskMof bq9o9lUIUjEpRH67vvRbGyflyuHiPDdBBLsPBnF1o4WXkkCOyn8c8wdAw1GjyW4WPGNF sM0hiYa0u+x2tazQ9Pu0kOl82LnSInpNBJHExzLTxGMhzgNewVLqPKj0KdQsh0FXQTlo KeJqx2SZO7tdd9KAHC8kAOhz1Rc565VjwgHUZm++ggkwmSwWPs31joJxjZ/6O55Te8+j vbsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ZOL8jp68frDmdFmotjs/CjSEGrRrsCfDr/cS6FaUvfQ=; fh=7bnSy0iMBYobMpuI7mznALnNoV2pC4xh+2kl1vqaRPo=; b=MMdYs66DEX0edvaSt3O5c8DdjjDqj8fYSjBoB8MbWqFiIpkCHeNONXT/4NhxkqDD3N VeDvOjd1wsVyl3N1NC86R2qNUUyXGqLV7EosqOQumlfpe2yHf7fEfYox/7t+Nocc+F/F 8sU/yQNiwELfuPnI0VxyBFWcsWSKudEUyDS2nmMzX8sSfD0eAMX4h6GO51Sq6twml3QF UfwujV5WA+T618+azIPkh/7WfG0mQNWidKMlEjDZfzYR32LaQDxNgNIia/CZmGC7i+OM 0mF8wrTdJbnkMHr5MKiukl7/Zj6JI4ZWj5l1jhCVLRrAmJOnki5oiGyVszl1G90clftI KAtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Bw4K5vLn; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w63-20020a636242000000b005e1c5c9a11esi13593787pgb.230.2024.03.07.02.51.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 02:51:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Bw4K5vLn; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B3A00284539 for ; Thu, 7 Mar 2024 10:51:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 038C5126F2F; Thu, 7 Mar 2024 10:51:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Bw4K5vLn" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9906383CB9; Thu, 7 Mar 2024 10:51:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709808700; cv=none; b=LKas4FOh7ylqgrUZs08kVj/4mo4o9z+xDinO45iNmjO3IZCEXFv2xuvnpETBAQkNBFkJipCoxH2rf1HQ2CIoj9CLyy07iiudoUAd8lvNEGQRnhp+6h+kpfRngt45980QF3kfrXWN89gsubF/ruXO4EtOFGFd5Jj36JlYNqSH8Tg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709808700; c=relaxed/simple; bh=LFi8S+OWOa1EYqqXXM+L4rFj+uOGc2AEYkl18pL38+0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=ECr3HlnhImdONHA0JfAC97CqcTD09/R9v3pnCJBlN5H3M5U4eHwJqNiMhImFsawI/MbJteccxMOsueeOwNU6UpnOtt9Xr6hvlbc1Oy1tn6Hopz4dNElTztQXMKyFGBiY1UM5BATSVAZhWbp6rpT8WkS7J8igIrtSuyoqicPDtKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Bw4K5vLn; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4130e293686so5240945e9.3; Thu, 07 Mar 2024 02:51:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709808697; x=1710413497; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZOL8jp68frDmdFmotjs/CjSEGrRrsCfDr/cS6FaUvfQ=; b=Bw4K5vLn1BbT5HKrWqMEiNe4yyYkqN6ok3MFtRFgjqu5Bc9fkXMmMVlhMIT/Jafexa SsbIeU0zvSammARhKpPaz1PNva67iJyMIjo/BrGytZCC1aCzOrwW4WJkNHQn+l6iW8M/ Zg3s1WL+C6m0iT8egEhoKjb1UlubR/IEZd6IBUHlyZt3t5ADkUyUa2XMGMzcEN5dkInU beDc4lHAHde7cdVBr3HaNq2pc6VWgHM3kvHOJxDsO09UU2FXntWjOb7z3mGno90RQQxH TluxCQ1v/6NMJLsy4GyUaotSwP3NRi82TQrzPESMdrj3PW+EXGb6RjHEEAHtFhAoT+pO QWkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709808697; x=1710413497; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZOL8jp68frDmdFmotjs/CjSEGrRrsCfDr/cS6FaUvfQ=; b=Am0G5Y8qe4oThMDJEYc9vMIvrFu60R3oUt7gfcUaUcNjTMGLwv7guUC2VMB2pxdIbk vMoBsNw7M/e6clWePczaqK/fzNuFRxPmzZ5Uem4JUTbS/Gm37tYrfT8s0PHhjQNH93Rd Ql8hyG4iEIU4rdvwqS8rw7Ibp9Hqs9MrsZFxe/3NGlhUtZ07j5C87S2OG1xM/MiPOUgJ kautF65FMy8iM6zwGILQMm+eLHSo2Gtav8Q4nUGvlerRDOFYTXAorjhXwi+/mUv4iIk6 xHOd8orv6n7ZLUm9lVuX2xLf4FkiqSkzEmmiW+5YKLICHml11ZPLEVQsbwsK99Fo9XlA zjIA== X-Forwarded-Encrypted: i=1; AJvYcCXFxzOFnUf1iIjvK1XiIeFKNYfvVfp0wM3gGjlYq99Ezn5+8WABcV+hrK688dAZDrkQgZMDPx0YdpQYIyS3NiNtQB6DrShDXr1BsGJm9PmGMOrXeROONI5kYhYPycIe8B3z2F61bpEl X-Gm-Message-State: AOJu0YxmRn3H/qUeegtIYR8D8NjaI74ro/KvDSH+/gMrGO+Y/fA98KRf aawvZFPwQVzg+9OgGTH2VAtXj2WzVPDzZyQGoKH3gjApKj3OMp2cBaOngbTDcUU= X-Received: by 2002:adf:f249:0:b0:33b:87fb:7106 with SMTP id b9-20020adff249000000b0033b87fb7106mr12194062wrp.55.1709808696943; Thu, 07 Mar 2024 02:51:36 -0800 (PST) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id bk23-20020a0560001d9700b0033d282c7537sm20282575wrb.23.2024.03.07.02.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 02:51:36 -0800 (PST) From: Colin Ian King To: Greg Kroah-Hartman , u.kleine-koenig@pengutronix.de, linux-usb@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] usb: gadget: net2272: remove redundant variable irqflags Date: Thu, 7 Mar 2024 10:51:35 +0000 Message-Id: <20240307105135.1981060-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 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="utf-8" Content-Transfer-Encoding: 8bit The variable irqflags is being initialized and being bit-or'd with values but it is never read afterwards. The variable is redundant and can be removed. Cleans up clang scan build warning: drivers/usb/gadget/udc/net2272.c:2610:15: warning: variable 'irqflags' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- drivers/usb/gadget/udc/net2272.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c index 12e76bb62c20..afd2a836be6d 100644 --- a/drivers/usb/gadget/udc/net2272.c +++ b/drivers/usb/gadget/udc/net2272.c @@ -2607,7 +2607,6 @@ net2272_plat_probe(struct platform_device *pdev) { struct net2272 *dev; int ret; - unsigned int irqflags; resource_size_t base, len; struct resource *iomem, *iomem_bus, *irq_res; @@ -2623,16 +2622,6 @@ net2272_plat_probe(struct platform_device *pdev) if (IS_ERR(dev)) return PTR_ERR(dev); - irqflags = 0; - if (irq_res->flags & IORESOURCE_IRQ_HIGHEDGE) - irqflags |= IRQF_TRIGGER_RISING; - if (irq_res->flags & IORESOURCE_IRQ_LOWEDGE) - irqflags |= IRQF_TRIGGER_FALLING; - if (irq_res->flags & IORESOURCE_IRQ_HIGHLEVEL) - irqflags |= IRQF_TRIGGER_HIGH; - if (irq_res->flags & IORESOURCE_IRQ_LOWLEVEL) - irqflags |= IRQF_TRIGGER_LOW; - base = iomem->start; len = resource_size(iomem); if (iomem_bus) -- 2.39.2