Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2001447rdb; Sun, 11 Feb 2024 07:05:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmflJg4MzaFOqxf/thmFM+Oaqrx1L2teH5P6RKZOXKFg00lV2Ackd50685sQn4VwDt8djb X-Received: by 2002:a05:6a21:3a48:b0:19e:c324:5345 with SMTP id zu8-20020a056a213a4800b0019ec3245345mr6859392pzb.16.1707663944753; Sun, 11 Feb 2024 07:05:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707663944; cv=pass; d=google.com; s=arc-20160816; b=H8TkyODk7TJD/qO1j66yYkrlWhTPgGl0DUuoharo021/lVnkAquqy5HL/esaniuOTQ ES2FczxDzDwbA2JmfDnlBLN9nS5CT8DaXpciQDJ947ISxNCgR7YQVG12HXiIik5bhluo KxGbj+s3iA5rAeY3aYk+X0Sjv3wPvbT9vtvb+MLXrkOMrPDEqYGKUHnjxbi2yhlfLTTz SY9xeSz67ocg66yDc1kYdtvwXeyBBU5xmESF7LjDH2uPGzatKhc6MEm/UiVu40xpRR0d 0wH7Yc21DRxmyl7+6kScVb3EIlhICRfMzTFg+GUGMlvwcYRl2h2651m5agr8BAke/VQY DEyA== 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; bh=nryRx597cKchFYb8UnXmB2/zDqeJYBtu9RIwauqLqMU=; fh=UbWRCHP9bZGUQuIQyuoc+tgWDDLvsjTLCZkTP9aehd0=; b=UFqcxjVXgM8MdUYuh5W9cY5GRzVZ6EbMu5C0R00quuxHqgnT2pM3o8pIX4hJKPT2kF diSj4GMfD90gla2Tgcpsqhp91MM9JBBhZmTf44zq7x0/oV5vfH30J2jAgII/0OUyL0Hv 6gjl0MHOM9MlUgQm2BBxRMDoOceMYmgN3lpz9eqcmjH1wFM1HMqyUzF7i1qfDwereskd ZwtXE9oBU3MmqO7Kxma0AoECB3BPMVoYe6vzNi+FbUcg79kaoN4Nz83az5YGyzekZIT8 j5QRiJp4VtU/TLFb9qXtt6urSyYctcgTlq4q2Jzi0qK8799JB6qjZzoFNgBaq4clv/gs tVbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=aladdin.ru dmarc=pass fromdomain=aladdin.ru); spf=pass (google.com: domain of linux-wireless+bounces-3419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3419-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aladdin.ru X-Forwarded-Encrypted: i=2; AJvYcCVPUFA4jm8sg4JqWXspS9piU2lzL9O5hzlxHjUxhramofj7P6rluyZk1kB9aInTETVHkWAQ4SjZ3WjgDHvUFCthnSvK/5zxl6qamJKx0Q== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r19-20020aa78b93000000b006dff1a51cbfsi3620832pfd.10.2024.02.11.07.05.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 07:05:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=aladdin.ru dmarc=pass fromdomain=aladdin.ru); spf=pass (google.com: domain of linux-wireless+bounces-3419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3419-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aladdin.ru 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 394752823B2 for ; Sun, 11 Feb 2024 15:05:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC6C75A11F; Sun, 11 Feb 2024 15:05:40 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from mail-out.aladdin-rd.ru (mail-out.aladdin-rd.ru [91.199.251.16]) (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 120C01E4B9; Sun, 11 Feb 2024 15:05:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.199.251.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707663940; cv=none; b=Fe1mLglXCLMLOs2pj69RSzD6HNL0F0TZSj/BwyNHQtBwEENKHrjFDPYS1VoFDosG0h1U6+nGmdaMumoBft4vCgv/E2v5B3LrQ+CwVNv47srs9/0cayMIYaNp6IXqYNO/ekViOY1Ua838prpMqp5SbdaiMO2IfhYwaku0ZO9qkOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707663940; c=relaxed/simple; bh=EVfYYXla2kngYHRfq5dYArFnPPlhtCqitcRxBeUUBj4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Ll/5RnWJYGjB/EwW8d8G4rH9i4idiwbUEI/WregvEhHjaW8/USVgNzccq3DkuO0Xw1ZXyGYazvfUN8Vl/zDzfs20aU0TfVbjDDaoYhN9vZx4kD9f9nnDbhAwh6DZ/Z7ls7nMSrrYtaC0CCxKJNA94LQoxiKc0FCgFvzeKEdGybk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aladdin.ru; spf=pass smtp.mailfrom=aladdin.ru; arc=none smtp.client-ip=91.199.251.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aladdin.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aladdin.ru From: Daniil Dulov To: Kalle Valo CC: Daniil Dulov , "David S. Miller" , Jakub Kicinski , Pieter-Paul Giesberts , "Franky (Zhenhui) Lin" , "John W. Linville" , Kan Yan , , , , , , Subject: [PATCH] brcmfmac: Remove unnecessary NULL-check. Date: Sun, 11 Feb 2024 07:05:16 -0800 Message-ID: <20240211150516.3475-1-d.dulov@aladdin.ru> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EXCH-2016-02.aladdin.ru (192.168.1.102) To EXCH-2016-01.aladdin.ru (192.168.1.101) In this case req will never be NULL, so remove unnecessary check. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 71bb244ba2fd ("brcm80211: fmac: add USB support for bcm43235/6/8 chipsets") Signed-off-by: Daniil Dulov --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c index 9fb68c2dc7e3..38e4e4f32a39 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c @@ -455,8 +455,7 @@ brcmf_usbdev_qinit(struct list_head *q, int qsize) brcmf_err("fail!\n"); while (!list_empty(q)) { req = list_entry(q->next, struct brcmf_usbreq, list); - if (req) - usb_free_urb(req->urb); + usb_free_urb(req->urb); list_del(q->next); } kfree(reqs); -- 2.25.1