Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp371601pxb; Thu, 12 Aug 2021 19:08:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzx9RHknqjj1tAPp1O4V2NgBwzXLzOShwfIQUoyrZpYj6OrLyPrFV0+FKdaf7mcz9ABEwAK X-Received: by 2002:a05:6402:42ce:: with SMTP id i14mr9334353edc.345.1628820488697; Thu, 12 Aug 2021 19:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628820488; cv=none; d=google.com; s=arc-20160816; b=ZOjBUH6qP4ihNk4aYX5xQiOFVV6tohEoDTgmF7u/7MiLZzkgdI94G+TKoGCcX0++u6 LOajMUDtaKjagRwq3LpLg82DgGlHWKq6frUPsYLiBoAC2B/OklFOiLKB6BdvQNlAo5m1 pEAjO6LUPK9Sn0Ub9piUMP/+/W9jM+JIGrJYYmtzIsmeHKLtIFqxh0K/I4XwzO1toizx kgNfU1UxABGo5oWbOnGu0MZKBijgODTlnHDCvjfB/2SAa+K8x+83Oyx9uBODVQkpT4q6 TFT1gvuT44EcNhoPuMIIq18absT6aToWzWV5eSZONThg46ROic2w88nLbLmU8kI2GRQl zYBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=64W0Rzrur5DnbHP4hOalW0KQb9n7hi068OYFKUZ/rMA=; b=KQiTTqACYvE4P6MehslFBs5WKyDSj/MqoqEoQ9nKat96iWsp90diFoFwfGOrQDKIsW Al1gkbff7Ljp8ff32Qxg8MP/863KNE4ImK12iYSBEyh3BpuoYn9mzT4rHxJWMqEE06TB nl5WW8Jfo/CKJofk4htBREjP1356Fq47QYO3Lsn7QgGQ00E7ZSa7LlbievZnDNWfzQ2u zT5vFNqY6t4gWIKQssj3NpFu82Iy7vG8L4tIXwo1qmMSTc1+b2G8DG49CKKWu9jsGrXM QCFh0YzrEeCOa68ni+8RVtBBYMItmsabfqaKIgcbHkpQpfdoimfKqIpagbKSSL5Jz/1M q5Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a3OBnfSG; 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 g4si105841ejh.515.2021.08.12.19.07.44; Thu, 12 Aug 2021 19:08:08 -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=20161025 header.b=a3OBnfSG; 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 S232392AbhHMBwY (ORCPT + 99 others); Thu, 12 Aug 2021 21:52:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbhHMBwX (ORCPT ); Thu, 12 Aug 2021 21:52:23 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ED69C061756 for ; Thu, 12 Aug 2021 18:51:57 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id z11so12909521edb.11 for ; Thu, 12 Aug 2021 18:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=64W0Rzrur5DnbHP4hOalW0KQb9n7hi068OYFKUZ/rMA=; b=a3OBnfSG1E1v3eOiKJUDUlDQVAufOTaVtSAqXF2WxNLIZgUGWGwtwDKFokVO87OwJ/ woUexZdBe0fxBlnuK/XRDIyR0CTGYuR2Q526MR6km3Hpxm2Bwg3GQeT5Pgugfr/9d0jQ EN0+y7PgXlCQ1gDuGQcrf6Js5GvxB/ENCuj/Kjix48zoWrTxL59JGJGjWzKrFgR1M9dw K/CFzcHetyeZmGWdVcVYa0vmnYBoLfH2xgH2oHAaw1hrP1eJbDJvqUlyCiEBDtlRon15 URuluZX1xSh6Yfb95+zBXJMj9wlzdhDDC7pQZwE9NgREMViLgV/U4aMMpUoKeQHTOHAp Dz2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=64W0Rzrur5DnbHP4hOalW0KQb9n7hi068OYFKUZ/rMA=; b=cXVsYSx6QtQC/L0FLA+XN+WKJed08aFm2dGVxEj+bzF7rS4cMe7Zu9I5vVfOVFprrl dae7ILd/yT9mLfOipd5maAgTyXcCGgiWz8aCFqO9auZbLQTUF4ewhpmMZbrkyPnJ6Gww oBjr4SsLPYuLvUqT6ZvNw98rCVgzYgRa3v6/LNIvmAi70oO//HGEA1jXZpS3S27k+AAO P4IFR0Te9xERnMPt7N390mfKfWgl7e3eVdIBPdCxJigjsU/WXgsmDFSsVFI0wHXinqba 6oMN7cYsXyWK0q8PtRuo8u50YaXG96rTpRHwnkQXBkoygbrn76tffA6R7ajG4/npCfXP qHVw== X-Gm-Message-State: AOAM530LLK7f5lYKJ1e2EWhP+tmPQv/lPgeoXX+nBQZjqnZEzF+VzGoV nAGvvK6u+PUYkDIQorIJ1DKEO674Ej4= X-Received: by 2002:aa7:d3cc:: with SMTP id o12mr8971391edr.335.1628819516107; Thu, 12 Aug 2021 18:51:56 -0700 (PDT) Received: from localhost.localdomain (host-79-22-109-211.retail.telecomitalia.it. [79.22.109.211]) by smtp.gmail.com with ESMTPSA id j27sm1402843ejk.18.2021.08.12.18.51.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 18:51:55 -0700 (PDT) From: "Fabio M. De Francesco" To: Nathan Chancellor Cc: Greg Kroah-Hartman , Phillip Potter , Larry Finger , Nick Desaulniers , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH 3/3] staging: r8188eu: Reorganize error handling in rtw_drv_init() Date: Fri, 13 Aug 2021 03:51:54 +0200 Message-ID: <2890624.vKDRqAKio7@localhost.localdomain> In-Reply-To: <24e15d45-40b8-b8a7-b633-9e538324a29b@kernel.org> References: <20210812204027.338872-1-nathan@kernel.org> <1651213.ETx7SW4KbR@localhost.localdomain> <24e15d45-40b8-b8a7-b633-9e538324a29b@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, August 13, 2021 1:14:01 AM CEST Nathan Chancellor wrote: > On 8/12/2021 4:11 PM, Fabio M. De Francesco wrote: > > On Thursday, August 12, 2021 10:40:27 PM CEST Nathan Chancellor wrote: > > [...] > > Therefore, apart that minor misuse of the "global" class in your commit > > message, it's a nice work and so... > > I am happy to redo the commit message if you and others so desire. > > > Acked-by: Fabio M. De Francesco > > Thank you for the review and ack! > > Cheers, > Nathan > Maybe that for that minor misuse of the definition of "global variable" it isn't worth to redo three patches. If I were you, I'd wait for feedback from Greg K-H and then I'd act accordingly. But, at my first read of your patch, I didn't notice that when you return the error from within the block starting at the "err:" label, "ret" is always set as "-ENODEV". So, why not simply "return -ENODEV;" and get rid of the "ret" variable? Thanks, Fabio