From patchwork Mon Feb 27 18:14:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simran Singhal X-Patchwork-Id: 9593703 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 0EE6A601D7 for ; Mon, 27 Feb 2017 18:15:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 050F7284BC for ; Mon, 27 Feb 2017 18:15:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA105284D9; Mon, 27 Feb 2017 18:15:35 +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 D79C6284B4 for ; Mon, 27 Feb 2017 18:15:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751556AbdB0SPd (ORCPT ); Mon, 27 Feb 2017 13:15:33 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34300 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbdB0SPH (ORCPT ); Mon, 27 Feb 2017 13:15:07 -0500 Received: by mail-pf0-f194.google.com with SMTP id o64so4745335pfb.1; Mon, 27 Feb 2017 10:12:38 -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=GelEaCmvepnsBwcOS31LN/kpdtLes8NFkYwG0hu2yyo=; b=Giyn9edzVU8bAMr4OkLo+chv71EdxZaeQ1skGz4QcZhBwzf838+Ul7fc2g4QTQFhPH lEKzdGRO2w6WNAhLpxVrtNLBObrJESRXMPmLOGfml3Mp/sJUcT3u6n8pyxnw+j+lysGB K3hhb97cqCcyBAAjL5QRu9OmNoN7Dj5gzdqjMogMyqVUbHs2Bp0b7OVMOlmZhY3bsnuJ mbDNOGELDkfDRgkiR9UQxwSThqQgBCsaxNWFF4IBNNtjvEMP9RkGd0CfFI74+a+ucChK /1TScCdUHS09sZP0GiP8qVeNcjh1DG4RtpGZdF9OIeOhC70340L6Acb4LfSnxvmAD+k/ iMuw== 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=GelEaCmvepnsBwcOS31LN/kpdtLes8NFkYwG0hu2yyo=; b=n8hmgKc4r3n4VRj0m6wXRxZEdFzE+XrKVWNAU5xnK834L4+zdxsQbqz21eiiklMDIW GYcSGIQDaOO3hibO++2+jOy46IDLdmdManTq0dUqOswKUXj6OcMFLXaMYhBDXXsiyafU zTfIC3J09EtupiaQVy2vwwh+yPoA2cbclu3DngPw2KhT6lVTiGfJN73BBe+EzOFzKs+G 0pWtxYH+7dYw85BCfNxqoEhindmrkD6mDjBJ6llb+gIQd1r6dC9hv2OKLwf4bV3g7rjl 5HZ8R7KaIkfwUVqGhvzkOAsGdG1o6kKJ1OqjB06nUxDcIkIgBqDAh4FHSwBkkN/5Z7k6 IEHw== X-Gm-Message-State: AMke39mYLHk5k6mEmrQnT5CkHC2bIHsVaxKMGUNlB01CHvTxv/zg6Ucnj4C7q48JFtZ+Rg== X-Received: by 10.99.168.2 with SMTP id o2mr22058667pgf.159.1488219158474; Mon, 27 Feb 2017 10:12:38 -0800 (PST) Received: from singhal-Inspiron-5558 ([14.139.82.6]) by smtp.gmail.com with ESMTPSA id o18sm32095845pgn.36.2017.02.27.10.12.36 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Feb 2017 10:12:37 -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 3/5] staging: rtl8712: Remove unnecessary else after return Date: Mon, 27 Feb 2017 23:44:26 +0530 Message-Id: <1488219268-3006-3-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/rtl8712/os_intfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8712/os_intfs.c b/drivers/staging/rtl8712/os_intfs.c index 8836b31..3062167 100644 --- a/drivers/staging/rtl8712/os_intfs.c +++ b/drivers/staging/rtl8712/os_intfs.c @@ -411,8 +411,7 @@ static int netdev_open(struct net_device *pnetdev) goto netdev_open_error; if (!padapter->dvobjpriv.inirp_init) goto netdev_open_error; - else - padapter->dvobjpriv.inirp_init(padapter); + padapter->dvobjpriv.inirp_init(padapter); r8712_set_ps_mode(padapter, padapter->registrypriv.power_mgnt, padapter->registrypriv.smart_ps); }