Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp556642ybf; Sat, 29 Feb 2020 09:47:38 -0800 (PST) X-Google-Smtp-Source: ADFU+vvHh+h05jEchqOkISLR+zwUM/I4p7XKgiwc1RoSqgqGCm/WZF6P4PczXbw5qeaqFjQ6o0KH X-Received: by 2002:aca:fd4f:: with SMTP id b76mr709217oii.140.1582998458029; Sat, 29 Feb 2020 09:47:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582998458; cv=none; d=google.com; s=arc-20160816; b=bsW5QbrsGBscD8noo2hz9CQcRP9InHYtLAvlgFZ5Fw6ZEr3raefT0OmmKlake8NweJ koa9m7NTWcOY+cmUz3oAcsalVijwTG+b/LZezgVG+V87YzVL0d/dv9zm9/HvoNoQZiX3 qbL4/cv/4/jTGVV7wYolRFjY0LZggchC/DHx8a9YMuMD4P7tvD+ZjJluQYVCr3FdrM9b 4OHfA5C7mc6yi8ao/2xq8zhEiHTlfGdaZXHZKqOhFEKvh8VDCGwUxVHUdxodJs8sPqzH 9bfZNslgfWaGQ71/NoFQoEPV0AknwDiJM0rugqJxk/oZdtxKMDVK71ijk14dJwZbNr5l kacQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=OlkVf2qhnH/lFuWWW44N2ysxvPKIgehhKY0+lEA5SDQ=; b=iY8tI6mnch8pPJKwLRDNeb8MVwlshXZqibpfa63JHLofo+Y3tGvBM1/8v2sHXtsjeh ohXfMhJng9CUv0MUCvkioI+ErxDjK2w5wiv5w3x/IkKuMby5/n1DpdHEAfsUTWM+yz2o aH9ENKrUGZlXHNMHb3o0gsw0Fb+EM375HoFWFDAx+VTQe/l/Rbxm0AVhBW7pqw2nYjij TPeWqnqL1wUjb8pw/e/BaV0QNuCw70u0chn5IunCxD9hvQPwPLrvCS1/aAd5tm1BwrzR uivTjsFzz51jj3F/78Jn/9sYsn19QbPXXysud5fNo/7f7yh6QOS1hbUy7J1u83mW8Agw T58Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o20si3564785ota.17.2020.02.29.09.47.26; Sat, 29 Feb 2020 09:47:38 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727500AbgB2Rnl (ORCPT + 99 others); Sat, 29 Feb 2020 12:43:41 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34813 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727247AbgB2Rnl (ORCPT ); Sat, 29 Feb 2020 12:43:41 -0500 Received: by mail-wr1-f66.google.com with SMTP id z15so7318037wrl.1; Sat, 29 Feb 2020 09:43:40 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=OlkVf2qhnH/lFuWWW44N2ysxvPKIgehhKY0+lEA5SDQ=; b=Dh05t7u5WV4DgYBCZbLVj9gi5yrehZtVaZxdnddw+jOWod3ZM4oHtGINdAFPZuX/mZ WEc2tMnwCGdUxZPX/5t5kfP29REMpmSdsI6LtZKAgMx8rLYtWyX07GkmfanKfbGD95dQ 6eWO7W8Gh+guzWTsCdpcaVBZRF9ciXBil/+3bKLT6qikQtN0XOQoI2E04aQvVvyhku/X Je0Mwv8wwQK3OpsfsxL+lxnwUjS9X+fLE+DVXsYeChv0Y1HR/4fownggPLuYUiKF3Y93 I3CxmLdl4hPr40LGbssD0exFQVjXRkEALdd+YTlA2drjGbDcQOZQMLeazrgqldaZmHFf FMUQ== X-Gm-Message-State: APjAAAWDkVxazJsgd+AglZCGBX5PVjgGq7K8K1t3e/nUv+xlaKNRsivp cTQolYKICKOj6bgejmx/l3k= X-Received: by 2002:a5d:5745:: with SMTP id q5mr11791913wrw.374.1582998219475; Sat, 29 Feb 2020 09:43:39 -0800 (PST) Received: from archtop.lan ([82.7.199.117]) by smtp.googlemail.com with ESMTPSA id t3sm18132209wrx.38.2020.02.29.09.43.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Feb 2020 09:43:38 -0800 (PST) From: Lucas Tanure To: Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lucas Tanure Subject: [PATCH 1/2] HID: appleir: Remove unnecessary goto label Date: Sat, 29 Feb 2020 17:43:33 +0000 Message-Id: <7c4c591bc1aa9e269cbf764a03e64d32dd6e6e96.1582998175.git.tanure@linux.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; } -- 2.25.1