Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6137181yba; Wed, 1 May 2019 06:45:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+2shZdmxA3GkMRF9vw/mEjrulYZEF3PykavrHob6FS5Rnh6PDAYspYJMjwYbdxuj/i8GI X-Received: by 2002:a17:902:20c9:: with SMTP id v9mr77004319plg.239.1556718312590; Wed, 01 May 2019 06:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556718312; cv=none; d=google.com; s=arc-20160816; b=s6dTMzjtR2Mf/2KoeGrp24itdU30hCyRh76w+ieQ9mqhQwJit2Q3YjyhaZnee3ulpw WZ4L9a7z6roGXUEkCg3xBaRg/q3Nndp7qtlD6exgVbSeykViwS5dp+R25b2OOCdt46ux 4aFqGuNPyv/vGY7mpdgyYkrV5NhDbCkRxHuaqtgdqxd4uouOOQiJayWL48V2QOqAb+1j 3uSKqOmNEgXKiEiCYExF94gfKI9AODd093g5H22xLgOpV6HXqSdWFaOX4IfySDKjePwE gTSCPh/SI8uTCavwBzCtamukZdlKHyZMyFZGMytHEfU5aYF/hjj/qQNfeJcMlp1UyZYJ l+ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NA8uZtkh6LJtOQQoYWocnWntrJfZG4nCDEl4gbjcA7s=; b=EMwko6CTxDHbwiakzaZmaV2UBIxriec22YL5HRoATjyWNYeriR4ESX+lxfBfdmUdO4 V25COkwxNqLQ2RnDv0me+45Z1GqkUFnWCAVgBJnJzEdP8LbX7Q3oLJVqUibLs756cDCj bfuABrtEimYsRCcZ43pzk8CgROy3XULbBxOcs5Moa2WUw73Kq9Dt1pDs78ectIKmmdGv UBAI/XN3CWwYue+tNpFfK+XWKJY5n/AFXIj88yrVcujx81zRHD9JKx0g9YEXjYMc2h2O DoiN6AQko/Mt8rrRbWBVpsmdLJTKS7FB/TxXjYR4AlBTGI8+AhjNzIBl72JX+u81xZ3K yh/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="fUu9+/p8"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si40772924pls.15.2019.05.01.06.44.45; Wed, 01 May 2019 06:45:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="fUu9+/p8"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726145AbfEANoj (ORCPT + 99 others); Wed, 1 May 2019 09:44:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:48584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726010AbfEANoi (ORCPT ); Wed, 1 May 2019 09:44:38 -0400 Received: from localhost.localdomain (unknown [151.66.22.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 596C920866; Wed, 1 May 2019 13:44:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556718278; bh=cDeiH4ksNkXMgOtamrsLlTi///OSXjW/4O2oRc5lln8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fUu9+/p8RyL+o3oVqZM6F9A/RvgpurQil04OHq2h9OEx37X3COz8BT1r1mPPsTNKQ EYAKBfCM+mRqpMTsdpOuAObCTiZnmCS/xYx08hB8qAUx67sHMa202ptqH/aDwxf53t XF6ucDuCk7en3Q9V/uv4lmXjGr0/xbCv+/N75D+4= From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org, sgruszka@redhat.com Subject: [PATCH] mt76: mt76x02: remove useless return in mt76x02_resync_beacon_timer Date: Wed, 1 May 2019 15:44:25 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Remove useless return statment in mt76x02_resync_beacon_timer routine Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c b/drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c index e196b9c0a686..d61c686e08de 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c @@ -189,10 +189,8 @@ mt76x02_resync_beacon_timer(struct mt76x02_dev *dev) mt76_rmw_field(dev, MT_BEACON_TIME_CFG, MT_BEACON_TIME_CFG_INTVAL, timer_val); - if (dev->tbtt_count >= 64) { + if (dev->tbtt_count >= 64) dev->tbtt_count = 0; - return; - } } EXPORT_SYMBOL_GPL(mt76x02_resync_beacon_timer); -- 2.20.1