Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2711901pxb; Mon, 6 Sep 2021 03:44:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8KOFSUiR9Sc4FdRFf3pLlCGGBVnhFT5XTn6+TEZxzr6CyggvuwxiqXDHv3RGULXUV9eom X-Received: by 2002:a17:906:169a:: with SMTP id s26mr12627568ejd.190.1630925088992; Mon, 06 Sep 2021 03:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630925088; cv=none; d=google.com; s=arc-20160816; b=UCKGUD5zfJg7xH4Vuo8D3cVWsYPGv71l+t5qAcK0eK2WF1Xq0UpyYhW7VSPC98VlPj 6x5O91M8JXpgtA2ugFbSYfso1fNlM85TFCN0MMnpO/a/KY7h6Of1R0MocB1SmKVi74gA 2aDNOBMErONeAhlpG14GbDRhgeiSCdz4GX1AGhyjEgKg9oNe9Ni+kRJS5vmqL4Q//Gm3 1FS1kStxwz/l13MtFKBxEToZ25yaV5sBrgitbCnESJk8hFf6egbYecHU4aO2wwUsU++a ln5eVm2MNxrFqX+VksVeGBkCnPqcFX1/PYdbpv25vCisx9uwH/640bnbWg/hJGQkZMnS JW3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/35z53h420eVd9x0GGMxOV6puR3UCGj0ROP/2GZkhJg=; b=EzXRSH8lQUJBgwDMEEdhTBuL962U6XdNL8NI4dpAkox0BeSSAW/MY5lyva5B69o0fC Q7OSXSc2TJlayk8zThro7VnfPg4IlErbUy4KOvTijqxfjVfX7Do2OLIVsYW4RuS24Q+/ 8xcikoAGvzd26+zwaS7XrAwDtxjmCHPAuO0YOSVqE82Uvgd1AWdHNU3AX7vQzkpqWEMe W8NHHBv68/xQQRABkJqqOz1zQ/bZMwsCoqPrIWJIX9IGoWxsVG+e4d8f+Uo2hXhDcF9P Du4Yurjj4jDfxJQJT/CoILodsyv56SJL4MLSh3vYppUybvokGAjInECToPeSek9sgXF6 5hTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qTSidDur; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si6174457ejo.582.2021.09.06.03.44.25; Mon, 06 Sep 2021 03:44:48 -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=@linuxfoundation.org header.s=korg header.b=qTSidDur; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241608AbhIFJq6 (ORCPT + 99 others); Mon, 6 Sep 2021 05:46:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:39262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241595AbhIFJqx (ORCPT ); Mon, 6 Sep 2021 05:46:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F25926069E; Mon, 6 Sep 2021 09:45:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1630921549; bh=/35z53h420eVd9x0GGMxOV6puR3UCGj0ROP/2GZkhJg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qTSidDurVKGLtwj/gtT1DF8lJu2lpq/11xP/Ua2sEBBFrMSTqSa6KdlDFAyNK/Txs T17/IpmwriF7ZFI49MU0W1CrDOVmCSUIyRvHWDSP7cUdq0HCDugpL+dFtMJ7o67QxM f6qj+Fvrla5GKahJG2phieiocqVPT5BT/LpmD6y0= Date: Mon, 6 Sep 2021 11:45:47 +0200 From: Greg KH To: Saurav Girepunje Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, fmdefrancesco@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, saurav.girepunje@hotmail.com Subject: Re: [PATCH] staging: rtl8712: Move similar execution in to a function. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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