From nobody Mon Jun 15 20:34:19 2026 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 029903C9EFB for ; Mon, 13 Apr 2026 15:24:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776093895; cv=none; b=g9HyjeEhAwbLSxU8gbNQo+gnvtg4Nz5nMVBMyXWi3JtUJ8KZFitPM9kDGNYOHmbWEylFWOQCG6udOR83JbXG3AcLGHt7nzfSwVqjIPrlw5qz50AKOf1dYGf+oLVqwGjqGkDmdUYb5DBMZVyCmVemeSPy2tqJgU1Eg3y0xneBjEg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776093895; c=relaxed/simple; bh=ETWLp7L3ve/is1thJxJF4FTDMtcazIWqLKCelUl6cFU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nUMYQGeYm9S+hKuM8VWzcuaIT7JCNXGJwlAFWbTfhVb139xkYab7iy9rYBb4m5eEXbmgFVGj1i8edEQNIwQYzYDWoe5cGn9430l4M4lXqlwUJZYZ8sB35b6hQJ6lnDano4YagGkS5Y/+AanzW+lzCDNGCDTI5JJw1T5bJogcisQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=crimson.net.eu.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=crimson.net.eu.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-48896199cbaso49228825e9.1 for ; Mon, 13 Apr 2026 08:24:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776093892; x=1776698692; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZS0CNrgXznE8yeQhJ5VRSFVvAbvG4lHRZsbtBKiwCZ4=; b=VZ2MkaXUDfp1IcvWF66BclDvoX0EOmh9zn1LkoL8fECfeS9pKGd3HfAywaZt+u4Jd/ ZAgwCos4a7mI2CPLxYtKKEavHMyq2qH7r/2zulRT9bGlwHqf6kXso/CqD4oRoKA5fiTC UoM/p9KlM2BRpKUTgnAb1fvzdQDmYpsIM2NgKP3RdW3giL6u0cGhoIFWB/Qb+ZumGZJe MY7HPEX9AXErJRFjST3xPTaPkklkYv/4R/rhfzzZacmYVGydCadJ0FCPKWD8443uAZ7p c3ebCtbfLfwP5Jml1bYFMxYfjROlHj1epW2wSz2QGJeHzq/qkV6O2W/EenHliaiJ08OZ oa1w== X-Forwarded-Encrypted: i=1; AFNElJ8ugQiDuK7odcaX4FJPC50lUug1NzeWzHe0xOnAvf00XHXBqzpaEkQ0xMV/JNZZaqV3cXxBAPnBk4oQAMA=@vger.kernel.org X-Gm-Message-State: AOJu0YznxB7KyULJatfWwiWzbLsMSphyFvYHi79YFGkXbTAzP395guIU D8fqmwAG0CgiTyFhErL+w49BXu+OeEz3DTRfAAwqrPegiOZ8z/HXEcNc X-Gm-Gg: AeBDietmDelZc+ifQ8kFKTMmK2OsPvY/fjC+jKDNoQBsg+lsGVy+r69J6456IUEZpuU F13y8JGtU71hZ9Pk1k5BphTZs+NiX4jbEy0mwKk9awEXxgguJoJA8j3bOLhFioQufBg4h72gc+A frzvo4k2OCZT7gxc3WW5gKYnbTddpGlfJJN+k4N4rdSJwUl7gfULKBfpm0jjbtfl1j+YycA79hO L76BwXTFvqGx0gmVt1WWukPvEyAej4i9xpxTIVPp99y9aZlZUUYWv39Q9U2THhdYrIuoyaxX37A FuU8BEY5FCySB4VuJ7S21k8CvsQ8NANn7Fb/2waLHHSiMtO1RkQP3FvCUdrPVXDPnYDCHYuNLlj KWkeBd2KyfG6Jt1oR8617EpIzbKRPcad+X+5uoeBO7Kwbk/NRdTYeL27xxE6C4CSQ+ezSB+h47S ymml/p+a9HMd/s65E0sbTiQAK+pUFLLFSmT+UHGOrSVZr8IbHfw/kkrLHIuJOGdUoCogTAKFvHy RszNXUQ X-Received: by 2002:a05:600c:5249:b0:485:7f02:afd5 with SMTP id 5b1f17b1804b1-488d680079bmr182307405e9.13.1776093892170; Mon, 13 Apr 2026 08:24:52 -0700 (PDT) Received: from localhost.localdomain ([2a09:bac1:3920:50::27:ae]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488d5cf2e70sm166833675e9.0.2026.04.13.08.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2026 08:24:51 -0700 (PDT) From: deep@crimson.net.eu.org To: Dan Carpenter Cc: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Kenet Jovan Sokoli Subject: [patch v2] staging: rtl8723bs: remove unused struct rtw_regulatory Date: Mon, 13 Apr 2026 17:24:45 +0200 Message-ID: <20260413152445.1333237-1-deep@crimson.net.eu.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Kenet Jovan Sokoli The struct rtw_regulatory is never actually used in the rtl8723bs driver. The functions that take it as a parameter are always passed NULL, and the functions themselves either ignore the parameter or perform no logic with it. Following Dan Carpenter's suggestion, removed the unused struct definition, removed the unused parameters from the internal functions, and clean up the dead code. Suggested by: Dan Carpenter dan.carpenter@linaro.org Signed-off-by: Kenet Jovan Sokoli --- drivers/staging/rtl8723bs/os_dep/wifi_regd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/wifi_regd.c b/drivers/staging= /rtl8723bs/os_dep/wifi_regd.c index c48a1e3ba4ac..3a43d0c8b142 100644 --- a/drivers/staging/rtl8723bs/os_dep/wifi_regd.c +++ b/drivers/staging/rtl8723bs/os_dep/wifi_regd.c @@ -97,9 +97,7 @@ static const struct ieee80211_regdomain *_rtw_regdomain_s= elect(void) =20 static void _rtw_regd_init_wiphy(struct wiphy *wiphy, void (*reg_notifier)(struct wiphy *wiphy, - struct - regulatory_request * - request)) + struct regulatory_request *request)) { const struct ieee80211_regdomain *regd; =20 --=20 2.43.0