From patchwork Mon Feb 27 18:14:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simran Singhal X-Patchwork-Id: 9593709 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B5758601D7 for ; Mon, 27 Feb 2017 18:15:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AACE728492 for ; Mon, 27 Feb 2017 18:15:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E073284A7; Mon, 27 Feb 2017 18:15:59 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51BAE28492 for ; Mon, 27 Feb 2017 18:15:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751803AbdB0SPe (ORCPT ); Mon, 27 Feb 2017 13:15:34 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:32928 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751478AbdB0SPH (ORCPT ); Mon, 27 Feb 2017 13:15:07 -0500 Received: by mail-pg0-f66.google.com with SMTP id x17so1778545pgi.0; Mon, 27 Feb 2017 10:12:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zX1E51OA4ZgGVHkxIp+hKu13zq5jRAG6BqVAGCBKFF8=; b=oT0YFwO2uxenBd3GkM8mB5esgNXBfhAnRX3EufcDpzHtIBRpt8egCIx7S4vrWTe3vI Pf+2cxbPHgcmioIFzcxyiznix63Py8PgAbHH7mdrNaVMA6YGa7St6g7aYesTUtvWVD9Q M92zIrZvMeApBJfE4jsO8h+ggvrGSJnym7xCKAIYjyln57HSv3BivRoNZeNi+FBPzEVY EZ7NvFB9gIdQtHpwvPvV7p0M+W28TAy8iNR+7vtg0jLStkumjOaQDnWmymxnDQPboZF4 yteg8PLAIZt9AMP/Eg19Wcdnwj2WzalAX4hpqlQ6mUllpzfAKXdW4tPxMnPcXrAM73Gn j6yA== 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:in-reply-to :references; bh=zX1E51OA4ZgGVHkxIp+hKu13zq5jRAG6BqVAGCBKFF8=; b=ZEMpN33mcNBFwQ+28cSXq7rYQXaxwosS3DE6NAgLSmxVeT9AogXVRqhtltt7umhfW2 CZf6i/wG9FUjSDYyomQmrMFz56y/DuVOUcoqN0h+9EbDasc+SwgIjAzWt9tQLKSGfxJY uF4yC+4eMpJhRTN2U8L3CEfEJoivnE1ZLiNkNqFDx9soA4kcEut3fL8OW17Deucn4gIV CJlDvd2Kj+yPmhxpsUvNdJ2kI+r093eDsUvxr1p8OxQ+n6ONtPW7jncwXEWL14uj+teS uOTnGQXPeOkKQKb1OzgiV9TvgXXNjRmvgWG31mxNEMb4xO4XM8bqklc2HnbZ6IGBSfGh 2sbg== X-Gm-Message-State: AMke39nRXexQejv5bG+oe66P6a2/HJ11OzRuf95OaZoPqvEUNa0Ic/TNn0/BsxaTeJAaQw== X-Received: by 10.98.150.70 with SMTP id c67mr22369081pfe.84.1488219154499; Mon, 27 Feb 2017 10:12:34 -0800 (PST) Received: from singhal-Inspiron-5558 ([14.139.82.6]) by smtp.gmail.com with ESMTPSA id y9sm17938422pfi.39.2017.02.27.10.12.32 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Feb 2017 10:12:33 -0800 (PST) From: simran singhal To: gregkh@linuxfoundation.org Cc: lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, outreachy-kernel@googlegroups.com Subject: [PATCH 2/5] staging: rtl8192u: Remove unnecessary else after return Date: Mon, 27 Feb 2017 23:44:25 +0530 Message-Id: <1488219268-3006-2-git-send-email-singhalsimran0@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488219268-3006-1-git-send-email-singhalsimran0@gmail.com> References: <1488219268-3006-1-git-send-email-singhalsimran0@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the checkpatch warning that else is not generally useful after a break or return. This was done using Coccinelle: @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c index 2453413..4d6c928 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c @@ -374,8 +374,7 @@ static int ieee80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv) if (!tcb_desc->bHwSec) return ret; - else - return 0; + return 0; }