From patchwork Tue Oct 13 08:18:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 7382031 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5AE5DBEEA4 for ; Tue, 13 Oct 2015 08:18:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7920820747 for ; Tue, 13 Oct 2015 08:18:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9C8D12073B for ; Tue, 13 Oct 2015 08:18:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932079AbbJMISf (ORCPT ); Tue, 13 Oct 2015 04:18:35 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:33756 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932072AbbJMISd (ORCPT ); Tue, 13 Oct 2015 04:18:33 -0400 Received: by pabrc13 with SMTP id rc13so14615301pab.0; Tue, 13 Oct 2015 01:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=GF5NTPI9LCgSLk1z61eUnvPZ+vkOAeK8/OF3Z65i7Bo=; b=XQlXHX27ywM5OoMLJJT1QmZIbJ7NEe04WmZGcFVH1Tz9uJVMo4KHUd7DTVxRCTzlCf DTj9TLrjd2iPK+AioiI2nOxChhwf+BFF9jd3dHZsns1Cw62FFKIk6EU45daqZ4M9b3p2 6IWZlpcfEIl/xLZ1CsTC7HSb8acR4ak10Adj/01idZetODMSXidNBAZCBnk6caJ8qNQ/ 1EfBAxKln9aWBvHPeI2pQiFpdzdIzLfeOvB5Dm/m0U835gwP2WXpeOaA0kU4Vzo2DtjT KsUGPAkQEfegFNhXl+2pC4E/4049Ghi78X/0WJ2emZAL6EfGylOgO5bBk9x7le8zQWEt OTYg== X-Received: by 10.66.219.195 with SMTP id pq3mr38822727pac.98.1444724313035; Tue, 13 Oct 2015 01:18:33 -0700 (PDT) Received: from localhost.localdomain ([49.206.250.161]) by smtp.gmail.com with ESMTPSA id db8sm2284924pad.43.2015.10.13.01.18.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Oct 2015 01:18:32 -0700 (PDT) From: Sudip Mukherjee To: Herbert Xu , "David S. Miller" Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Sudip Mukherjee Subject: [PATCH] crypto: ccm - remove goto Date: Tue, 13 Oct 2015 13:48:25 +0530 Message-Id: <1444724305-3235-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Instead of using goto and jumping to a label and then returning from there, lets return directly. The label out: is not used from anywhere else in the code. Signed-off-by: Sudip Mukherjee --- crypto/ccm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crypto/ccm.c b/crypto/ccm.c index cc31ea4..daa7e6d 100644 --- a/crypto/ccm.c +++ b/crypto/ccm.c @@ -881,14 +881,13 @@ static int crypto_rfc4309_create(struct crypto_template *tmpl, if (err) goto out_drop_alg; -out: return err; out_drop_alg: crypto_drop_aead(spawn); out_free_inst: kfree(inst); - goto out; + return err; } static struct crypto_template crypto_rfc4309_tmpl = {