From patchwork Fri Mar 18 13:38:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitoj Kaur Chawla X-Patchwork-Id: 8619131 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 355AD9F6E1 for ; Fri, 18 Mar 2016 13:39:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 679A52020F for ; Fri, 18 Mar 2016 13:39:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 90492201F4 for ; Fri, 18 Mar 2016 13:39:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933261AbcCRNjA (ORCPT ); Fri, 18 Mar 2016 09:39:00 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:34540 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932620AbcCRNi6 (ORCPT ); Fri, 18 Mar 2016 09:38:58 -0400 Received: by mail-pf0-f180.google.com with SMTP id x3so168577167pfb.1; Fri, 18 Mar 2016 06:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=GzZsLtHZOduBvcIw1atykXYQEi6jVPrw5Pqwx36v8yo=; b=0vf8aMjB/6orvnqHP2n1XOWYaMUUy7d4jdS6yrRQ90Tc6cNotgNKfOVgTy8o4bmXqz fwbohKohNdIR/NbUPdMy/TYxSXNMLDMvTxhmD1vjhXJ5WlHtGuAoCvajP7AwmHr8E+os VI6Bx/Rer8TUo+ZrFrgMMCHWBc3FMYat6O/nqwQlSQiraDgnVs80RiJzd30S8tkNQQpR ILcqcHPIVWn/l8603DtxMYIqrxQ0FKyMnitJ+eyxW2SnuF3d8ZhiTuJ0/b5QjG5KMLW8 EoeQ9gQONrH870dSK9blf1lVvKely8N12ymW3LPkFpt3UyUfQiK8Ftxw79c0Y4bcC56k gwYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=GzZsLtHZOduBvcIw1atykXYQEi6jVPrw5Pqwx36v8yo=; b=btYFJkzPCtZuUbAProMz8/tlAHHsQ8D5DyUX4QeksAfUaHLVUOk04HDzBTxLnN8R9n Gn+92J3IqA07K505HgnmzXB3FQJVBA/hZk+xsahssMSwZc3GvPBwYPKAXZ5wIAAihE92 jjeZe2SlVdKrx5tilmzUVjRqMmbmP2qtN4obmiZsbZpGifGR0RFt0p1MvpMU05sNax1q SoPaKerSysvPaG+RX/HXQcOF9zx7yN24/huZ0D1AofNdSH6hAyGlYodRiURlXX0a6Tzw 9m6B8oqfZOgBiIsF5BLTZBftsR77f9T7ZgYhbMJCKiP57lthpfvk6FDopIgWu8+B/7UU dTHw== X-Gm-Message-State: AD7BkJKxA6qTOPzxW4yND8gQ+2gvublYSozDjhEkdS6ZCVpLZKGmFyo25Ck0XP8qdKFGEw== X-Received: by 10.98.72.89 with SMTP id v86mr17125167pfa.156.1458308332831; Fri, 18 Mar 2016 06:38:52 -0700 (PDT) Received: from localhost ([122.162.162.14]) by smtp.gmail.com with ESMTPSA id s197sm21224783pfs.62.2016.03.18.06.38.51 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 18 Mar 2016 06:38:52 -0700 (PDT) Date: Fri, 18 Mar 2016 19:08:48 +0530 From: Amitoj Kaur Chawla To: herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: julia.lawall@lip6.fr Subject: [PATCH] crypto: n2 - Remove return statement from void function Message-ID: <20160318133848.GA25643@amitoj-Inspiron-3542> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Return statement at the end of a void function is useless. The Coccinelle semantic patch used to make this change is as follows: // @@ identifier f; expression e; @@ void f(...) { <... - return e; ...> } // Signed-off-by: Amitoj Kaur Chawla --- drivers/crypto/n2_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c index b85a7a7..c5aac25 100644 --- a/drivers/crypto/n2_core.c +++ b/drivers/crypto/n2_core.c @@ -1598,7 +1598,7 @@ static void *new_queue(unsigned long q_type) static void free_queue(void *p, unsigned long q_type) { - return kmem_cache_free(queue_cache[q_type - 1], p); + kmem_cache_free(queue_cache[q_type - 1], p); } static int queue_cache_init(void)