Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp16432ybh; Wed, 11 Mar 2020 19:43:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu2m7KPwwRCiguASIpBmGDI6hnVxn/uz3TQlE8cL0o1z3LsM1NaGYfHdnkUKvqyG+SU5Lej X-Received: by 2002:a05:6830:19ce:: with SMTP id p14mr3002950otp.362.1583980982428; Wed, 11 Mar 2020 19:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583980982; cv=none; d=google.com; s=arc-20160816; b=mvSQ7OEGeXrVk8Pz9sdXMuSdLJvy4hUNKpHFMo/exi7zkabPUjt8TIHx4yOrltJqsG S2YO8Fz4n+RiaIzchfFPZg8eGwpKmmyuIYt02T8bfQkAxT0/TF4U1zAmHJHKgpihJ+bW Z14+Vilq1O6dMW0Zmv1IsqsWrZm14AoNo8YyE4LZ0B1wbrFLnirTTZmh5zBNTsrfmgNB 7Nah0bqn53yv7K9/uyMWqgeyzIleKU9pAxJw/nY8JgUlHai+Leq54sShLNNl4zvGpttq MvsDwg5dT/YOHDKIrI7pBKVP34zFi4mNlervMvGegvevVHtHxDWVV7LLG7Gm7L12W/JX PdPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature:dkim-filter; bh=FPn0J0a+i5WpPQn+wWi5l3mA8piuchfQOex4GqLMil0=; b=uzT/PEFUeLssaUmbD4RJb4AssQcGiW6k+cQUQUuEsWTG23n9Ly0aCSnRm3jbsojt/G 6/LQM92JJUhin2Gw97QHyGxTnDoDDPqflQb+qnuL/HbXtsa1aF0eN8b/V3KDjag0mXgB R6G47sYzCe/opLAwyvNFiYgP2O7JdtEW/zOU+HL6u3CLE0SdkEfFyCG/2EtTSRoUpZS4 1XHyI5YQifnDqErvoqcY81iQN8XDQc9xW3qm0ZbsUCREcZ43zG/Bupc7ekIOzQiXhYx9 cTkNsZyAyh8DBMOE3YYfKh8xUFMfh94bAE7r0YDrX8BHlueVQMPPhyFtCrFYob/EwyZ2 dBuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Lq9bjLEB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4si1946958otp.218.2020.03.11.19.42.49; Wed, 11 Mar 2020 19:43:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Lq9bjLEB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387674AbgCLClh (ORCPT + 99 others); Wed, 11 Mar 2020 22:41:37 -0400 Received: from linux.microsoft.com ([13.77.154.182]:43120 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387501AbgCLClh (ORCPT ); Wed, 11 Mar 2020 22:41:37 -0400 Received: from [10.137.112.111] (unknown [131.107.147.111]) by linux.microsoft.com (Postfix) with ESMTPSA id 8167120B9C02; Wed, 11 Mar 2020 19:41:36 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8167120B9C02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1583980896; bh=FPn0J0a+i5WpPQn+wWi5l3mA8piuchfQOex4GqLMil0=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Lq9bjLEBp7SL0Z6FdOGkbsBEfiXIiOB12effq3ESopNg/WxdNEjjthlzf7xMDmeAr ksJOTlMvOTT49LGJ9z22mYxrAW2tGwOg59w69Vo8YhWOaOeJYfGmbJfkDVDbnqwmi4 EyWcjHr0Sf3O2tCS609q9IHQZFhVi2bv+KVqVI9E= Subject: Re: [Outreachy kernel] [PATCH] Staging: rtl8723bs: rtw_mlme: Remove unnecessary conditions To: Shreeya Patel , gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com, sbrivio@redhat.com, daniel.baluta@gmail.com, hverkuil@xs4all.nl, Larry.Finger@lwfinger.net References: <20200311135859.5626-1-shreeya.patel23498@gmail.com> From: Lakshmi Ramasubramanian Message-ID: <61a6c3d7-6592-b57b-6466-995309302cc2@linux.microsoft.com> Date: Wed, 11 Mar 2020 19:42:06 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200311135859.5626-1-shreeya.patel23498@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/11/2020 6:58 AM, Shreeya Patel wrote: > Remove unnecessary if and else conditions since both are leading to the > initialization of "phtpriv->ampdu_enable" with the same value. > > Signed-off-by: Shreeya Patel Stating this based on the patch descriptions I have seen. Others, please advise\correct me if I am wrong. Patch description should state the problem first[1] and then describe how that is fixed in the given patch. For example: In the function rtw_update_ht_cap(), phtpriv->ampdu_enable is set to the same value in both if and else statements. This patch removes this unnecessary if-else statement. [1] Documentation\process\submitting-patches.rst 2) Describe your changes Thanks, -lakshmi