Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1913421ybh; Fri, 13 Mar 2020 09:33:19 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuJw5xcAiMN9FWBOBdbAdgZ/FAa5mfQ+qwP/+XDHn+4b0WJtzQY51dc10cFI7k0kK1o1TLC X-Received: by 2002:a05:6830:1081:: with SMTP id y1mr11398385oto.367.1584117199546; Fri, 13 Mar 2020 09:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584117199; cv=none; d=google.com; s=arc-20160816; b=oIKE9twcgCAanfoNYAGOZKtrmUd9y5Pvgf+1QEsPStfkuJrumHy8V5fCc4OK3kvaBs W2SgIr1T49snszWvg7hAwmTT4W2ofdEeHzaeDQxX7uXOhPYCWeLJNOkMWzq9RYZrucmz oc49e559LPIC2M2deBCWzoRTe0n43VzJQpLGwbLkaQbMseGlRJlwbkm/r9xWLKUToTVx 0qoOycV6CdZ+dqgiyy/m4DbGYiSPhfrC7j5VWngrJIBXPDuOvPYH0dKlJGx9guvxsPbF gZBzM4iiH+HT3IkAZ71wSVwtUxNcEwB3ORcXYfCL3JUhS8BKUGw1qZ1xD91iB4jz7ZcE lZuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=8IvHFOBV6rwQwsJCK3MLHWafSUBkoaSrUxusZB5a0XY=; b=bgqY8ufiefmsADKyZ6An8Cv/0lJifTxxacYG3m2AqjQ9+LV0gxAYAdK6DZ9mi//UCA iJXgBLpVnqyn9RasZG0lH9QtUGNOYCn8F1/A6ciZ0fFZjd7Tadbx/JJzS2Y13oXnZWbZ Yxjq/4C+3fafDDtnmVWG0k5xzno8vDyZJ2ehsMpXxt2M1cSZQpTVYdlvKZCXxg7llzpH GpicxaMIwimT2jMCIvn72JkZsS8DYyX+Btt02pRGZUZYzcqfEOx4yiGGD7+yv97UfX73 mchaU14yuVL27umYS8N/G5lV4xNP5zMgk+VFwlI1bqIhG8en/X5JRlWRUZz1rE1V7SGt 93uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="UE/g3Ljy"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a59si5242175otb.8.2020.03.13.09.33.04; Fri, 13 Mar 2020 09:33:19 -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=@kernel.org header.s=default header.b="UE/g3Ljy"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726652AbgCMQcR (ORCPT + 99 others); Fri, 13 Mar 2020 12:32:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:37148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbgCMQcR (ORCPT ); Fri, 13 Mar 2020 12:32:17 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2C71B206BE; Fri, 13 Mar 2020 16:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584117137; bh=UJ9uLMaNsCdSFf3b8zBqQuLODCb8Yutk8T7Vp7hT9Sg=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=UE/g3LjyhJa8gflDX21ggALqOZagI2f93Me8yQnI6/xIFheEZYxT2wicWbDM/SkVk iilOTh/8AuagnAWQaMa10epUpGAJSb15ctVjxHlstwD41960w9mcUs2Ug0DnVAjm8J F1eno/74++40wsX6qm5egffxPECDlXa2F31dU6Es= Date: Fri, 13 Mar 2020 17:32:14 +0100 (CET) From: Jiri Kosina To: Lucas Tanure cc: Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] HID: appleir: Remove unnecessary goto label In-Reply-To: <7c4c591bc1aa9e269cbf764a03e64d32dd6e6e96.1582998175.git.tanure@linux.com> Message-ID: References: <7c4c591bc1aa9e269cbf764a03e64d32dd6e6e96.1582998175.git.tanure@linux.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 29 Feb 2020, Lucas Tanure wrote: > Signed-off-by: Lucas Tanure > --- > drivers/hid/hid-appleir.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/hid/hid-appleir.c b/drivers/hid/hid-appleir.c > index bf8d4afe0d6a..aafc285b538f 100644 > --- a/drivers/hid/hid-appleir.c > +++ b/drivers/hid/hid-appleir.c > @@ -284,10 +284,8 @@ static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id) > struct appleir *appleir; > > appleir = kzalloc(sizeof(struct appleir), GFP_KERNEL); > - if (!appleir) { > - ret = -ENOMEM; > - goto allocfail; > - } > + if (!appleir) > + return -ENOMEM; > > appleir->hid = hid; > > @@ -314,7 +312,6 @@ static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id) > return 0; > fail: > kfree(appleir); > -allocfail: > return ret; > } Applied, thanks. -- Jiri Kosina SUSE Labs