Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1854712pxb; Tue, 26 Oct 2021 17:55:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc63hO0e8YAerAJY8eU1Fn3NDRoYDHMDp8EzPUeMPMv7NbPY3AndPgLm0Ni34A7kHFiXgX X-Received: by 2002:a17:90b:1811:: with SMTP id lw17mr2391915pjb.22.1635296104670; Tue, 26 Oct 2021 17:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635296104; cv=none; d=google.com; s=arc-20160816; b=GvhcCyCt+IJfUo7kUJx+Nib7VHy41XnOT/BX8h1jrdCdH7umI+EwG2uEN7cMpHwqk5 UYI2t02bZJfxxD5CiRGvyqMGx3uhyF6BFE2Uro3DokWs68pqvaRpX1MjTECGfyGjTvl6 ksl4LNKSinx4BqEcbFLwfLsj7oc3FbPCUc/iWjP8bTktoW7kIXU+u0Xd+gIT8P4SD1cM vn2XjnzG6QGBPdcMcxeys/RGhkM3OsGopUCe6iTDHXuwYKe+ehJLVPdVvB08npjml50p cgJq/C6vnxmWBNKXhrN4rWv+9v7tHA2gO6vFrbF3+PntgJVR8Oe1UGtMgp2CpJWqZSMU ixlA== 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=WPFKW7oY/Vr7D70o3iWoIdTfqPztr0OLeHJHoOaK1tI=; b=Yn0kZQ4eyz7Ywl25C7RuMjvqdLOv/X461B1MdYSBJwSd1s7+HxSZlvg/i9IUTwEZks 8CQLrlF/NcqvmZJ+mBcXGVlyGtx1dGyUmV5N6+UAa/9P78i6UuUwtokjHQK5L3WeioJz 8tTecu6+SKVm1vagDH4L3tsD+EeUNc8ecYhQijEmGhcuAAmqOm3EIESgq9rvQu1RZ8is WZSsX8qJtsYWqonVyctebgvJ60XEud4ZS+t1G+P1mEkUxbIIRd8e42uArh05nqNPPAVm nmwLcD7v5d9Xi2MQrj1yB9B7pl3PNfbR9+W7GbWgXON85W8C6bzfhmvD55oh6h6UhjC0 kqkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2Uk5IJex; 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 j12si7618246pgq.346.2021.10.26.17.54.51; Tue, 26 Oct 2021 17:55:04 -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=2Uk5IJex; 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 S236486AbhJZQtM (ORCPT + 99 others); Tue, 26 Oct 2021 12:49:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:49934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237416AbhJZQtE (ORCPT ); Tue, 26 Oct 2021 12:49:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4ED6260F56; Tue, 26 Oct 2021 16:46:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635266800; bh=Z3FjBer3srN93t/2Uf7lu/L5rOeofkEIMvasXqp1PmY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2Uk5IJex1IypM0jZd9RDdxc9g5l12pzKuuCnPx24gPmAxtGHu5BTSvuMH0nZOckAA 283VYCiCetAfQpyCsjk/5gnZ/yuKwW+Wh3gOQD8Qo9h17ExmFMT4CQ1EvAuIbw9rY2 RueeAztIi7APihq5SQSyFtsBSmSzPpVwLUtwF7TI= Date: Tue, 26 Oct 2021 18:46:38 +0200 From: Greg KH To: Saurav Girepunje Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, straube.linux@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, saurav.girepunje@hotmail.com Subject: Re: [PATCH v2] staging: r8188eu: avoid use of goto statement 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, Oct 25, 2021 at 08:06:00PM +0530, Saurav Girepunje wrote: > Remove the goto statement from _rtw_init_cmd_priv(). In this function > goto statement can be replace by return statement. By replacing the > goto statement with return statement local variable "res" is also not > required. As on goto label exit, function only return it is not > performing any cleanup. Avoiding goto statement will simplify the function. > > Signed-off-by: Saurav Girepunje > --- > > ChangeLog V2: > > -Add space after line end on changelog. > -Remove addition blank link after the local variable res > as per the coding guidelines for linux kernel. > This does not apply to my tree, please rebase and resubmit. thanks, greg k-h