From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932184AbbJMISh (ORCPT ); Tue, 13 Oct 2015 04:18:37 -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 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = { -- 1.9.1