From patchwork Fri Mar 1 23:16:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leon M. Busch-George" X-Patchwork-Id: 1906971 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=vwOM2EGH; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=georgemail.de header.i=@georgemail.de header.a=rsa-sha256 header.s=DKIM001 header.b=aWR3S+9/; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TmkZd5xsRz1yWy for ; Sat, 2 Mar 2024 10:19:52 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YcQF32DsFFTLZBTgjQ/v3Ct9JYdHGpZtch58q+2kdwY=; b=vwOM2EGH6pigKF y7C2lH7Y+o6LSMRh5VST+lLXH64u+fq9xn4wUiQ7W1eicnh3yNvJWrU1dMnGOtQ3tnDJ07oMULB5r sbbqJMJ+DpMVtPldC2H6bTFkrOiNdYuOYEv5cKRoy01oTNjFeOMowPWF4Lskc6ueN+BbfmOMDlixr qXUAmpB3fawXFDH3VqI0WkeOSlk6YmOhWC0h5rPVWTHrRawGZBFnmyUkFn5ah8xB1CiW43c3lGl2e MubeDyHDKv4WLu06ccewP/q7+axEI6cQdA4wIBPrLvWzHeBew+6sT8YYeWYglPdhHQQlWAra+kJoA Cro4AF6IGvKY0LdKNDdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rgC8T-00000002Ej8-2tGf; Fri, 01 Mar 2024 23:17:49 +0000 Received: from smtp6.goneo.de ([2001:1640:5::8:31]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rgC8Q-00000002EhJ-1lYN for openwrt-devel@lists.openwrt.org; Fri, 01 Mar 2024 23:17:48 +0000 Received: from hub2.goneo.de (hub2.goneo.de [85.220.129.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp6.goneo.de (Postfix) with ESMTPS id 9C0BB240D6A; Sat, 2 Mar 2024 00:17:43 +0100 (CET) Received: from hub2.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPS id 0DAFC240462; Sat, 2 Mar 2024 00:17:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=georgemail.de; s=DKIM001; t=1709335062; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gzrJhUOH5eBuOJViW0eEmIUjErSBTjd0DVvbytbNcnM=; b=aWR3S+9/BsnBNlK0COBij4sfHgJA0QvXt1eZUx0gMBo5aWwCphHpEEtM8rXQZhku9/fAGp IbjXd9zMtMwzgaPvpoo5gSpicZ3qa0P+sloo2wVU8heR0lRTldGGF9niET5g6j6hIE9nuJ UtITlu2ni1G6ZZpkMmHtHeKS+5Kwbjhzqp3QPYhrgdvTVZmZTrP3mZmgT0dD1RWiOm+KOz 3nVJQR+5zSPK8BgBuEhEJBokO1YfkMV6j4M+h1X7Rj7xsjUvGz9PkYM4tnjnfxYZQqVFtr 2wnAOIzUekN2RDLiOUpmuI9vw2s7dAKMKVTPffr5GzPbsgbV/VofAfXFmnnNcg== Received: from couch-potassium.fritz.box (unknown [IPv6:2a02:8071:5250:1240:f4e6:f6d2:6d95:e0c4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPSA id CC1B02400CA; Sat, 2 Mar 2024 00:17:41 +0100 (CET) From: "Leon M. Busch-George" To: openwrt-devel@lists.openwrt.org Cc: "Leon M. Busch-George" Subject: [PATCH 3/3] move assignment out of condition Date: Sat, 2 Mar 2024 00:16:22 +0100 Message-ID: <20240301231721.139669-4-leon@georgemail.de> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240301231721.139669-1-leon@georgemail.de> References: <20240301231721.139669-1-leon@georgemail.de> MIME-Version: 1.0 X-Rspamd-UID: 117d49 X-Rspamd-UID: f535fb X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240301_151746_672617_92A1D208 X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: "Leon M. Busch-George" Signed-off-by: Leon M. Busch-George --- iwinfo_nl80211.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 8eab671..6270ef9 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -2031,7 +2031,9 @@ static int nl80211_get_phyname(const char *ifname, ch [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: "Leon M. Busch-George" Signed-off-by: Leon M. Busch-George --- iwinfo_nl80211.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 8eab671..6270ef9 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -2031,7 +2031,9 @@ static int nl80211_get_phyname(const char *ifname, char *buf) strcpy(buf, name); return 0; } - else if ((name = nl80211_phy2ifname(ifname)) != NULL) + + name = nl80211_phy2ifname(ifname); + if (name != NULL) { name = nl80211_ifname2phy(name);