From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 74B0430C606 for ; Sun, 25 Jan 2026 22:22:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769379757; cv=none; b=W8Q964VgLTtQ4vuIc2xJLv2M7ao5JbCVv6Ch02oUsOzLWyErUIMXIyIo6pvvAPQ08D/kJMc01CjJUZCFdFUBwqUyd1m6IS0wzBKaQII7y6KmrrSzmq0A4yVDrOAw/V/T2vaKD6aJIwTK6Ufv5DGUXdu3ezf9obBDyFHcPHPOGkI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769379757; c=relaxed/simple; bh=pDt97TE9+N9OqDYW8W3b3sp9edmUgt9ZFwP62WETY/M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VNAxY6SSa/gDD2WK3llU/h4ycoGiQclqN8tlc4E5yyw8g225D4+Ou11uBayUuCBBece7Lj8yme15DWM8uEJCvxpOhogevdCHj7UxGHbgWnzRrQGC/h98I0aQy+1hGNSfWuk/nDNQD15IqpSc5DtYiR+XpgMqKNKUYybcX3N5BPo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=OKyXLMCt; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OKyXLMCt" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-47ee3a63300so44712585e9.2 for ; Sun, 25 Jan 2026 14:22:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769379755; x=1769984555; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=K08h/9XDDyoYcyZBnc69B/7jptU6R1syGCkGW/zElEc=; b=OKyXLMCtFp1Hi/zUZUwqImpaDcFc/tWGcXntPpdDfGHIs9OCHCDxjmKyuPnrxv81bL KEqfqLriDzMfnE2FP+7qpdefh3tCK/9C00/J36YdrkmnBoXprfWakhJnEz/4dlnLiHUY XC8sSfdGatw3/1xws9Ephu8mCgkMbwJ/pSlvNwcUs93ghwLboSzDFy8IMZfoUEzeS9GB KsA/SdMDm/pmMtXUaCxRTQapJ2ldKW+YEkBOQznW0FLeEUNonCI4+/SQDLj26Vcu/Rcy 5mJ4ALzBjPFLdOsDtpPFoZXylQVXoWTAVomACIWVST+tkSiH9isSM/E9V+kpyIoDxtw7 ataQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769379755; x=1769984555; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K08h/9XDDyoYcyZBnc69B/7jptU6R1syGCkGW/zElEc=; b=GKycv3EiN3sE+q8UanqV/kaQ9vIDUBqdgInhceO+XAV1E+rZUzYVWiEskJAoQmsLMp fxPOxNxVyNlDxgW+p3Vlecfad+yXT2F7KCsI8ZVssaeePhJEg+hfAuVrBqd3EhQ56Tr3 zlsNsO3c+qNEEIZqMBfwzqgTAjdipu9ff1neenkHiRMExZadPtgtwubnNKN0r8sBmsJZ FkS4w18avYGoXe2UhVqRmlz9HeXoCFZHUgf/2qcy3OYE8j1i51fF7W1c1f7yyHsgK8Jd bjX5aOyjNzKi/YXlFiAYW+RPo3naxWU12MfYiByex4F+dRMoN/7EHdTX2Kpn39tZiUKJ zzaA== X-Forwarded-Encrypted: i=1; AJvYcCVCvuZwA0ZhH8SAs44CK4P56wZLz1HTqGEbgWriy9W3YvkaYmIPP/hWdQ5kKl0krG9ZGmyMe5o0rhsOz7A=@vger.kernel.org X-Gm-Message-State: AOJu0YzmO3HzSgCAhnjrN5cFQIaMqTiha4hsYAjfeNkID9frpPLFGKck g7YY0AriiYGyBJTDsWtU0HBUTjUON/wqwzknKE9jk6L6Lggu2UhJS0UJafSoUJguqEYTYYJ8i+s e8FsmGL/5nA== X-Gm-Gg: AZuq6aIJAlkRk/TLtry9oBotDd/H2nu4AY+9+wIFwQKL71wlXC1Hc8uyPxcxrQS5xlz Bf2doAcbIWdCC8O3MGDpp9bJNT8EI8WS9FWpxrdhuqnytfQc2TJHOLlpVGlhDvvnGSZQmLTYR8v twR/wVHYsgDSRn6VwlPxS8R9winj+Zc9vqrx1sFpRAHe6vF6t1c4NKznvoqq6netAAkc67pU0Bx i95lZVdmMR09DnjDeFl0aBH5kCEQysFNQsbJ7rzPrcZXoRconaBlTm4jDEVa7odD+nxnY7Nlm7n 4Fy71CAZ/AIHuaD7BpWogXs/oQ5sx7gdMDIZykQuFZ+e5XERxZBrG9nFRcjIUDLfJvBlfn/0D5F UH3bAhPmysbueftqfjj26ONChgo5Kur25cxUXioC0msx2jfzLlvhp6/D5mZTOVHdM/pXuFYBA3i KDZxieYYYe2lEqy4xeQgvxUxvEggA= X-Received: by 2002:a05:600c:4f8e:b0:477:b642:9dc1 with SMTP id 5b1f17b1804b1-4805cf669d1mr39228825e9.20.1769379754766; Sun, 25 Jan 2026 14:22:34 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435b1c01783sm25762820f8f.3.2026.01.25.14.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jan 2026 14:22:34 -0800 (PST) Date: Mon, 26 Jan 2026 01:22:30 +0300 From: Dan Carpenter To: Michael Huang Cc: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 0/7] staging: rtl8723bs: cleanup and refactorcleanup and indentation refactoring Message-ID: References: <20260124104920.5721-1-tehsiu.huang@gmail.com> <20260124231557.18189-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260124231557.18189-1-tehsiu.huang@gmail.com> On Sat, Jan 24, 2026 at 03:15:50PM -0800, Michael Huang wrote: > This series refactors the function in rtw_mlme_ext.c to > improve readability and comply with Linux kernel coding standards. > > Following feedback from Dan Carpenter, this version (v5) deconstructs > the previous changes into seven atomic patches. This separation ensures > that logical changes (such as flattening nested loops) are isolated > from purely stylistic cleanups (such as fixing indentation or NULL > checks), making the review process more straightforward and less > error-prone. > > Each patch focuses on a single category of improvement: > 1. Logic flattening: Use continue statements to reduce indentation. > 2. Comment positioning: Adjust comments to align with new logic. > 3. New lines cleanup: Removed unnecessary new lines > 4. Line length compliance: Resolve 100-column limit warnings. > 5. Operator spacing: Add missing spaces around logical operators. > 6. Braces removal: Clean up unnecessary braces in single-line branches. > 7. NULL check simplification: Use the "!ptr" convention for brevity. > > --- > Changes in v5: > - Split the series into 7 atomic patches for easier review. > - Renamed "guard clauses" to "continue statements" description per feedback. > - Separated logic changes, comment refactoring, and style cleanups. > - Fixed indentation issues (replaced spaces with tabs). > - Simplified NULL pointer checks to use the !ptr convention. Thanks! Reviewed-by: Dan Carpenter regards, dan carpenter