From patchwork Tue Feb 21 10:28:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Rokicki X-Patchwork-Id: 9584207 X-Patchwork-Delegate: kvalo@adurom.com 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 5922E600C1 for ; Tue, 21 Feb 2017 10:28:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B4B9288E4 for ; Tue, 21 Feb 2017 10:28:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CE30288EA; Tue, 21 Feb 2017 10:28:49 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C7C94288E4 for ; Tue, 21 Feb 2017 10:28:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=NXdF4Ut3PcRq8W1XI6nByi7dVGStztvlvX3lmDu01yg=; b=cIJ nQQem/L98QkfMHVPGwUlyqxO3zafS8piu9+a+6zD6gHCdDOqbPWNeJqrWGrTdmIumZTUVGvG7u60D +Ycc2HkONVNa0PEFY7EsA2INe4b+iffkBfKmrfLgLMidtGE8hWqD3SUwJso4OwFCUVkYAcn/CTu3+ J04rYqNnZgHOthm5QZ4SWu7wnv8/CHC5SbBtswPh27iXplc3XVrapO8bcvv8lxQpLXjqpO6+kIPSV i+A9PNJxK/1Tv4iFIUEe8d6PbtTd5D7NvwIuuuPuNlfLtP5vB+bJcXhBy+Eg9sYYgrH7qrCPPXbUG DAO0TUju9LiPykfQoxDLF5h5xQXZYVQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cg7gX-0003WH-Mo; Tue, 21 Feb 2017 10:28:41 +0000 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cg7gT-0003FT-2s for ath10k@lists.infradead.org; Tue, 21 Feb 2017 10:28:39 +0000 Received: by mail-wr0-x22c.google.com with SMTP id 89so74626892wrr.3 for ; Tue, 21 Feb 2017 02:28:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=A636j97nUuHglCAy2y1ObU6NolngHh+envZQm+VHnu4=; b=prO8P8VpCT4YL15SlClL1C5Pf+EWW6aa9kzOpkHa8pqXzixCtw4qO2b3bW000/2yXo 81Sm+zuBUMCMV/8CCLqxy9BeThhh7xHCP+VQuIkkMxgIAQFcHUjIgD5ss8QcLrid8Jxr Di3QH5qw75v5Z1b3thWqQDA8SiIdIyAcem9DE= 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; bh=A636j97nUuHglCAy2y1ObU6NolngHh+envZQm+VHnu4=; b=rF1RUBHx+WowYqNrRdh35S41bVkQHjro6J4B/u72M7XY4ARWQhk/7Mu0wqgqJpDUSg 4aJabQrEZCzncbmRalh56YE2dwk+zmIeup05GtfipoSC2EPy3SUrICsCKCDNbM6kfcGH akjA7jV8Qj+zEqZioQKMNAggyUsDbLoREOF5Qrp5+fCTLDupjFt/riUjgEf+N9ZhqeNd WMRPLr7cZvIiy1Yctzbdewnr0OWdozEYMX9nINlH4fG8g5Y1ZAQu5gqbTxjZ+g7oWeEH NcaMt/hXpOtGzOKTCD9cVIJEdiUWtzPs+9cLeWy8Lz5dYpE5o0r6sOqA1KwBuS/FZcCh rcMw== X-Gm-Message-State: AMke39l31m8fazeO1mkb2Kg30z6gXfmA76WEmzgH2RwxYFIY9Fl5gaqE9g6vwFfWzyf31bh6k59ePYZh3vqQdR56oD2iCrOTpKjwphCk3UrCeUnFi4zwRTK88UgfTVvxZQ7UhkdoUWxGocDM0tF+tGsBOjj7RPTSoXF+xAIbraH4lC0C4TjhhPZYRmqNb+mveDg= X-Received: by 10.223.148.5 with SMTP id 5mr2106619wrq.153.1487672895146; Tue, 21 Feb 2017 02:28:15 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by smtp.gmail.com with ESMTPSA id e16sm28343436wra.36.2017.02.21.02.28.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Feb 2017 02:28:14 -0800 (PST) From: Marcin Rokicki To: ath10k@lists.infradead.org Subject: [PATCH v2] ath10k: Remove return statement from a void function Date: Tue, 21 Feb 2017 11:28:11 +0100 Message-Id: <1487672891-8584-1-git-send-email-marcin.rokicki@tieto.com> X-Mailer: git-send-email 2.7.4 X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_022837_449449_D69B44E4 X-CRM114-Status: UNSURE ( 9.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arend.vanspriel@broadcom.com, linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The empty 'return;' statement in a void function should be used to return from somewhere else than the end. Signed-off-by: Marcin Rokicki --- Changes for v2 -remove only return statement instead of empty err label which can be used in the future --- drivers/net/wireless/ath/ath10k/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 59729aa..a22d3c9 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -2311,7 +2311,7 @@ static void ath10k_core_register_work(struct work_struct *work) /* TODO: It's probably a good idea to release device from the driver * but calling device_release_driver() here will cause a deadlock. */ - return; + ; } int ath10k_core_register(struct ath10k *ar, u32 chip_id)