From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 0725D258CE5 for ; Sat, 24 Jan 2026 10:52:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769251928; cv=none; b=V5wlVfNJakfyFRxt443uEk7e6TfqDgv5iw21gGybsw7aR5enphm8pcSIHDLCKXgOtXvc8xrfg/iFoycPq+vgo/3bt0qXuxDjYSpxr0leXZ5nVpk0YFPm/W2AS0oNu2gHh2lpgwxLSa9pqwPJrb0v+xQBSF/2tMtk+BUVyRweBiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769251928; c=relaxed/simple; bh=c8OXWhPoxykZSUYNVwCqaa0nQ06SZaP7SJFSeSjrHV4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=obmMcDYOaQgtfuFAs+yVL11zJuyw2kW/CRxyLHeLtQI9IIwO0GesYTiQgnwN0vch7GG5OV7dI3qOs1nCuMDRN6Nq/LZh9kLcyNuITyR1NY/y9LgMayrapVIQsT5OvPeRt7CE4Hf8WTODjSjXqZPygGNcB+bxbo3NP+CVqFJZBGs= 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=LaJd3b4D; arc=none smtp.client-ip=209.85.214.180 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LaJd3b4D" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2a77c1d5c3bso13418815ad.0 for ; Sat, 24 Jan 2026 02:52:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769251926; x=1769856726; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Qusie4ZgkVeIPV3xhLckqmXKj+Z/hWmHOiE3F2hf37M=; b=LaJd3b4DdHaazeTwQrIz1pLE6X1Hj7vFccGzmg2RgYVZHY5ahZHIy1DhXzjYeMAQpu bSPjE3oWftsvDuOT/5eTqGjouoPFwmFz7R448MOv7XY1TYO0N9KoaupfJsJ4sycE/3e6 ZInabjtn+1/kV2C7Nxs6EK/9r4iV69xz00fYd8dAAATJW5lZEq8G3vA/f1tLaW2TWNff v74PIlCwcWixh8nI8r+od10VomLsokodZbzeM5Ml/gaENogLRZAJyecGXn/KyKEqihs6 RdYRMB2vBZ1Lv4yTZXIqtudipDPoE2vp/yUb01j4h6jbkXlUwLOHDEA0t+WYrnAvuAYH vvUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769251926; x=1769856726; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Qusie4ZgkVeIPV3xhLckqmXKj+Z/hWmHOiE3F2hf37M=; b=YZ51WCP6XTS+t8yYxQ6BWPPmkw0zLZqEL2UWEa0NNP3tfBiaJEX2XqpIC0E9d1a6IJ C4uCUeiu52z/r0bwTTfhv0QDGvcNYdAAsYn/RU2GPFm33IIHWghS9LD1ncT3cgCIczbP xTuldTJNmduQzYapP6A9BAWTyyw9wvnwQdMWVT0LR4FfpkRvEmkx0YeawtjLtyfTRHCU HeUyQ/ReleIZ1Gu1rQ1RHl9RlkgfrhwR+/oDWrK7Y9Kt8bg8C25rV/1HNYAwzEiMCEX4 m0E1R5sRs+hChbzEhJYwo+2/kWupgxfS9lFsdIXMfuwRal+K7wDzJavxnz2pUwBMofzh cIQw== X-Forwarded-Encrypted: i=1; AJvYcCUrJFNyHEAOQx/fFoGgfUUSjf8hR2mu4fqrq9k5yN8W65xzPvaqNFmTrx0dwtHU5v7iPKVhGQqIioBqaP4=@vger.kernel.org X-Gm-Message-State: AOJu0YxbdhfZiWJleEXHJNLaxibSpoXJmOLk3jF+mhcgT9fKIZm3+Kue /g/lY7sKeNDt1JZ96TmtuWjrhFp1V377kVo1WNNt+9U7m/uxgo5E4BSJ X-Gm-Gg: AZuq6aL6nGYLj93rrBBljldmRfoWdGW5yt0R382o7dnFDWqfqFqKaCd3w9hZS+qAfBt gABn8+0nvxnqPaG5naidp1xu6gj6NqVFzmsqGMi8TOAG3XPk38WS7X7joklnD6OXdYGtwVXGuxc dY7xJtPJvu9Dv26GJ5mlUTKxKAODeR15+j0GxL1Awqs16/nrEFO6zZXW+R8ThRpk6wj9cwMIndI 9YUZkrqNHKSK97dZumUH375UzHN+zsY5hxxyiokd2fovO9N26+/0vxGqo4a7ng4YG95hweGJUmn CDCGwnLc1l1ISnpqPpjWkGj8QYiaT3Kd2x5LSHfMSPIugJd1kWGi/6gJt58419Q07t+CyBg2lPi vKgH8DTW8F0hiryW5W2/Wy5hGmVdIYq90iLAZ4QQyOSEwSMemeYaV75sToG+sVvuccDV+QOtbp4 hVaj9bpM/hKrt7yEszThmpXfvLcRWAs1vGMrUKiJcFrM8= X-Received: by 2002:a17:902:d48f:b0:2a0:c942:8adf with SMTP id d9443c01a7336-2a7fe442af4mr46672225ad.8.1769251926301; Sat, 24 Jan 2026 02:52:06 -0800 (PST) Received: from tehuang-Alienware-m16-R2.. ([50.47.240.160]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a802de5cd4sm42468985ad.40.2026.01.24.02.52.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 02:52:05 -0800 (PST) From: Michael Huang To: Greg Kroah-Hartman Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Huang Subject: [PATCH v4 0/2] staging: rtl8723bs: cleanup and indentation refactoring Date: Sat, 24 Jan 2026 02:49:18 -0800 Message-ID: <20260124104920.5721-1-tehsiu.huang@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260123211904.64589-1-tehsiu.huang@gmail.com> References: <20260123211904.64589-1-tehsiu.huang@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series improves the code quality and readability of rtw_mlme_ext.c in the rtl8723bs driver. The first patch refactors several deeply nested loops and if-statements by using guard clauses (continue statements). This flattens the logic and makes the code easier to follow. The second patch addresses various style issues reported by checkpatch.pl, including line length exceeding 100 columns, unnecessary parentheses, and unnecessary braces. --- Changes in v4: - Corrected the patch format by moving the changelog below the "---" line in individual patches as requested by the automated bot. - This version (v4) serves as the initial clean public submission. Changes in v3: - Split changes into a logical two-patch series. - Fixed commit message line wrapping (75 chars). - Added missing Signed-off-by tags. - Fixed line length and alignment issues in the code. Michael Huang (2): staging: rtl8723bs: refactor nested loops to reduce indentation staging: rtl8723bs: fix line length and coding style issues drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 142 ++++++++++-------- 1 file changed, 80 insertions(+), 62 deletions(-) -- 2.43.0