Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2996223pxb; Mon, 6 Sep 2021 09:52:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk4bSSIQ9H4oiDuUkY2NeXZpz8iABu8en0HcgF3TZLN0Si45pPYqARrmj9jmu6b9IqDZaW X-Received: by 2002:a5d:87d2:: with SMTP id q18mr10555395ios.78.1630947172748; Mon, 06 Sep 2021 09:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630947172; cv=none; d=google.com; s=arc-20160816; b=ZXmzb55YdBKTLuk8kJzshctjNbFpkgdDiQaloap67PO/iG4NADCnlpmnPpEsFouxuh UkASEZDhkpbptcBWxsC4wYYJ14OcOSNngIi48m0y8hF1IjIcMbjCxkbWlQW1WewR3uVH Eec8nzcqn5Qa+UYjSPZTcQsSb8p48BKBUq2YPCfYa2e8IOyzKErOwedhR/5EUQ6HHLCh dXOzi50+T35UZYSX33Jaaj6z/WOXlEv/Sj7BRh6FhUe7HjpEwUiWa7Z47se86uTykPBh 6FCyvNX46yZprEI5pWlpWfqWTxqiO/dlXgoJgx6QNuU3ZSpKNbgo+4V4WFMm3iVIsHLP nzTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:cc:dkim-signature; bh=mzSa9wZBKlWhK0MfqqmZO/9vUDeVuVCig7dzjAMX9tU=; b=OOhx6eMls4zOPC4fFOhLeH7BMYK5W9415faRYtnRXwtH2qalzEKxOcjch+f3mywgSs MDDmuth6wEEdx3MNfGUMR0vx0AUxzD2UALBYZ4ORYZ6mUwaeuCbaCe1QKOedTX8zj/TV oEgEAZUggVy3ckKBQNf83SH7L2v1loEk95zn6lklesenN3EQRi/pMIEdjg9jxNCwjRul Gq0xx4TkbshvNTSiw5zdtZPPif7jrhj6q5qV5ZJuBMfEHtqnDGh3/jSzCaXs/j4N07Pj 5YKatVF4iui6MpoUOykj0mAR2+KnlVWMLnNI1wr6ApjZOALrERNzo9MYPK1PCeimI4y5 EJQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=poqQLF14; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si9663763ios.94.2021.09.06.09.52.41; Mon, 06 Sep 2021 09:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=poqQLF14; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231591AbhIFQvQ (ORCPT + 99 others); Mon, 6 Sep 2021 12:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbhIFQvP (ORCPT ); Mon, 6 Sep 2021 12:51:15 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7767C061575 for ; Mon, 6 Sep 2021 09:50:09 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id d3-20020a17090ae28300b0019629c96f25so309179pjz.2 for ; Mon, 06 Sep 2021 09:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=mzSa9wZBKlWhK0MfqqmZO/9vUDeVuVCig7dzjAMX9tU=; b=poqQLF143MSqjX1x09dOGpUZELMkqVG4vNZB2PH8jKS7wyUw0A9iY9zGVZ3qWDJ9rb oawjx9L3oObPLILFPPfqAuzEjlafiSg8GXvwrRH+KOGkTvmwonfCQfTe010LosiSNJVZ Cq9NWoiUfK6hmL0NLmUBxsyXLsSPWx/xnSf0b9+6UuERLwEZ0+niwqvqKaKs3n68jnu4 t3I9t2bhawcfYthhIeyvt6QhSAxJPRmnYG1Da0fovy360VJ0fiHwEqk6/M0ya8fuDVEb 6spBzwAp5I0GRsznKzmnRgir0U1zAv9aksoCiwoZ2i/ztvJCCEhR3KcAyaODBiFFlvHe wECQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mzSa9wZBKlWhK0MfqqmZO/9vUDeVuVCig7dzjAMX9tU=; b=t4+FJxyRtnSIUmABWvVOPH0jUlmgUL21jlRiCs9RtsHvIbYQvFOCjAUZDj6Fi98b+E Pc6bCtpxyVqMNXdiFFCD4OrgZZtRrB+F0RWMuAHACUctY55RYGHDytbxmyfCOC6v66om LEyudyLTx/1y3+EY2Ux96/engSS0qSyfEG7qlQXmxnCbbFQeXbtb+jqMKWW7xutrUKqP DDzfA5+Zc/AjK20QV/HfZaWleSEABfOskOo5UQVVms6qU2/fDYwSmU6VgxlLuYFlOGE0 53LcY1Olu7C4YwdAR5q59+T9loyrqgE4n3grGIQeJW0q77XmAOnwLh4PjgcdyzD+lgjK sQJg== X-Gm-Message-State: AOAM5329Q8p6CDjMVnWkh3gchua7izAUu+RqnorXwoVLpo9SIanQD229 NgXUg+JzzpWVWmQemrS8Y5tnme+8SchO+w== X-Received: by 2002:a17:902:6f01:b0:138:9aca:efda with SMTP id w1-20020a1709026f0100b001389acaefdamr11493582plk.19.1630947008991; Mon, 06 Sep 2021 09:50:08 -0700 (PDT) Received: from [192.168.1.6] ([117.98.200.228]) by smtp.gmail.com with ESMTPSA id 11sm8143234pfl.41.2021.09.06.09.50.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Sep 2021 09:50:08 -0700 (PDT) Cc: saurav.girepunje@hotmail.com, Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, fmdefrancesco@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: rtl8712: Move similar execution in to a function. To: Greg KH References: From: Saurav Girepunje Message-ID: <4b62cbec-b356-b920-17ba-3ee7cc6f9713@gmail.com> Date: Mon, 6 Sep 2021 22:20:05 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/09/21 3:15 pm, Greg KH wrote: > On Mon, Sep 06, 2021 at 12:15:57AM +0530, Saurav Girepunje wrote: >> Move the common execution for read_macreg_hdl, write_macreg_hdl, >> write_bbreg_hdl and write_rfreg_hdl in to a new function >> common_read_write_hdl. > > You said _what_ you did here, but not _why_ you did this. > > I can't easily see why you did this, please explain it better in the > next version of this patch. > > thanks, > > greg k-h > Ok, I will add explanation and send next version. Thanks for review greg. Regards, Saurav Girepunje