From patchwork Mon Oct 22 05:00:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zach Turner X-Patchwork-Id: 10651685 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 935FC13A4 for ; Mon, 22 Oct 2018 05:00:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7890F28640 for ; Mon, 22 Oct 2018 05:00:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 68DB4286FD; Mon, 22 Oct 2018 05:00:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7181B28640 for ; Mon, 22 Oct 2018 05:00:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DC0F389C69; Mon, 22 Oct 2018 05:00:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-it1-x142.google.com (mail-it1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by gabe.freedesktop.org (Postfix) with ESMTPS id 84B0F89C69 for ; Mon, 22 Oct 2018 05:00:45 +0000 (UTC) Received: by mail-it1-x142.google.com with SMTP id k206-v6so10467350ite.0 for ; Sun, 21 Oct 2018 22:00:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=Rb1QnmDXT6FHMuLrgX/XAtVXumJd+aiTUfKTIo9aaH4=; b=QRfktbc3CM2pfBXc7JqnSeJc2d0ZeVDZ5FCaZ9KHRLp7MmLE+NiZMzc91DBnMYSOoL +1WBgDGdvsYr+rzJFfxSLoqMWE5kjk08liiZVKCuQgAWAeqXTflWaE66SCXPLpAoiRTV hI60hWI00EtCBEWftLPKhShjFIqr0iq/DMHmrxu4UVvpvzN/v9KIzqAKZRdv80pZTnFB vAugNwzBg4euGmuuJCSQWcagjhsoutwubObKl3N9urqHGkZJD/r/xE4eU2vWUdyxVG4C GmkOwhkRY/L/ztt+j7yGRSIKXXhGobjqh0WImBKT9us9BugLI6zzuju7oc4JmGITsKiB /UJw== X-Gm-Message-State: ABuFfoghhs4uDkXqPG82hElninod1zxgSFbX8vEmq+o58YSIGJC/DGL3 f0P0phRF//c6qiUxAwUVPuiWE8Jy+zo= X-Google-Smtp-Source: ACcGV60Dn0+IYaCfORp+S2uFwzFUIiXa6Vb1jdS1/ZUcQbGmpHg6r1AxYh+TYGNUcqtONwtqPLxQ5Q== X-Received: by 2002:a24:9188:: with SMTP id i130-v6mr7545712ite.41.1540184443703; Sun, 21 Oct 2018 22:00:43 -0700 (PDT) Received: from venus ([2601:285:300:e6d0:d99:c44b:f2f:9e44]) by smtp.gmail.com with ESMTPSA id b66-v6sm5027721itd.35.2018.10.21.22.00.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Oct 2018 22:00:43 -0700 (PDT) Date: Sun, 21 Oct 2018 23:00:42 -0600 From: Zach Turner To: gregkh@linuxfoundation.org, hwentland@gmail.com, manasi.d.navare@intel.com, daniel.vetter@ffwll.ch, dri-devel@lists.freedesktop.org Subject: [PATCH] staging: rtllib_crypt_ccmp: remove extra blank line Message-ID: <20181022050042.GA12004@venus> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes 13 occurrences of the chekpatch.pl check: CHECK: Please don't use multiple blank lines Signed-off-by: Zach Turner --- drivers/staging/rtl8192e/rtllib_crypt_ccmp.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c b/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c index c8757965be55..8840a84e5dce 100644 --- a/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c +++ b/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c @@ -94,7 +94,6 @@ static void rtllib_ccmp_deinit(void *priv) kfree(priv); } - static inline void xor_block(u8 *b, u8 *a, size_t len) { int i; @@ -103,8 +102,6 @@ static inline void xor_block(u8 *b, u8 *a, size_t len) b[i] ^= a[i]; } - - static void ccmp_init_blocks(struct crypto_tfm *tfm, struct rtllib_hdr_4addr *hdr, u8 *pn, size_t dlen, u8 *b0, u8 *auth, @@ -180,8 +177,6 @@ static void ccmp_init_blocks(struct crypto_tfm *tfm, rtllib_ccmp_aes_encrypt(tfm, b0, s0); } - - static int rtllib_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv) { struct rtllib_ccmp_data *key = priv; @@ -217,7 +212,6 @@ static int rtllib_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv) *pos++ = key->tx_pn[1]; *pos++ = key->tx_pn[0]; - hdr = (struct rtllib_hdr_4addr *) skb->data; if (!tcb_desc->bHwSec) { int blocks, last, len; @@ -254,7 +248,6 @@ static int rtllib_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv) return 0; } - static int rtllib_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) { struct rtllib_ccmp_data *key = priv; @@ -314,7 +307,6 @@ static int rtllib_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) u8 *a = key->rx_a; int i, blocks, last, len; - ccmp_init_blocks(key->tfm, hdr, pn, data_len, b0, a, b); xor_block(mic, b, CCMP_MIC_LEN); @@ -353,7 +345,6 @@ static int rtllib_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) return keyidx; } - static int rtllib_ccmp_set_key(void *key, int len, u8 *seq, void *priv) { struct rtllib_ccmp_data *data = priv; @@ -384,7 +375,6 @@ static int rtllib_ccmp_set_key(void *key, int len, u8 *seq, void *priv) return 0; } - static int rtllib_ccmp_get_key(void *key, int len, u8 *seq, void *priv) { struct rtllib_ccmp_data *data = priv; @@ -408,7 +398,6 @@ static int rtllib_ccmp_get_key(void *key, int len, u8 *seq, void *priv) return CCMP_TK_LEN; } - static void rtllib_ccmp_print_stats(struct seq_file *m, void *priv) { struct rtllib_ccmp_data *ccmp = priv; @@ -438,13 +427,11 @@ static struct lib80211_crypto_ops rtllib_crypt_ccmp = { .owner = THIS_MODULE, }; - static int __init rtllib_crypto_ccmp_init(void) { return lib80211_register_crypto_ops(&rtllib_crypt_ccmp); } - static void __exit rtllib_crypto_ccmp_exit(void) { lib80211_unregister_crypto_ops(&rtllib_crypt_ccmp);