Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4572835ybb; Tue, 14 Apr 2020 09:52:42 -0700 (PDT) X-Google-Smtp-Source: APiQypLfs6LIdh7I+9OtnwAP44MiGSpwLCxMIDmo9LMiJysIvBWK2ML8kG69lwcrPZOnHhQqF3sa X-Received: by 2002:a05:6402:28b:: with SMTP id l11mr15407444edv.156.1586883162482; Tue, 14 Apr 2020 09:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586883162; cv=none; d=google.com; s=arc-20160816; b=vw2SXA1V3WLjwYEY90lyvxfVBLTlZ5csOKxI3aoXWdg6jp4prn3PxYGFl5n5ECFmuy 4iaB9IYHyQfUybcZGipOu10jepURq7+GXPHNEW1I0USM/lOZWqTnab1JAJt9J/Uyl9Jg R8njTNLVoCOZLOzaw1q0kZlh5cYFF4uokTnt5IwNCrwb8Lpt/ncnLbDCXNQ3GlAVdCfX zZj10ZBjsi7g63SPDMkyotlInpTic6I0TYGbKjPcky2WATqH9SVY/0BSwnLIpNZFxUh/ wI5kRHM3pVe9eiaiVnHAJwB6cx0TQ2tRQrqiza1ZNCt9H+n4faC5B9SkoVP9vZ5RaX6L iNrg== 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=qSZevX7zdINBFguGAmQTW6CNQbsaMrmkfeelqYemd08=; b=GrET7zE6XyMjBDAQQiX8ZMLQOcaZZKIdUUNzoI7EaHVctx+jPDy2z/Ut+B6WBLmh2i k2R8swrWLcJPK2eXOVOIqsRCOkdcRPzwCgXB3zRO3flmTRg4fdHZgNZe06vryauSa0Ip QwVCIS6OnKxyj/yeN6p3nqeabReh8OxfwcYaouWw4IWA8YWvzlPlVQ0RjolPbRSBgh4R vP2GKfja1mPBoTRE4/0c6m5BBVipHet5+GRxEtE9X7Go+dVq/d+L2HLwI1lvlw7ttgKK PFeToyiE25b0if1rJmoTqLWPf6rFDQrY/Wp+wSnOcnSHr5kP+rnjx2KAsKyPVE7OcRTS 8a2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=KR6ctP5E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w26si6602841ejb.118.2020.04.14.09.52.18; Tue, 14 Apr 2020 09:52:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=KR6ctP5E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440700AbgDNPkx (ORCPT + 99 others); Tue, 14 Apr 2020 11:40:53 -0400 Received: from mout.gmx.net ([212.227.15.18]:44211 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440639AbgDNPkA (ORCPT ); Tue, 14 Apr 2020 11:40:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586878781; bh=9OBF6gIjnTCjWkLOnZw3x33tS8mKryfNv0za8UnranA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=KR6ctP5E28ExNfQyU4nYL19Thd+6hjEDhiVKcsF77siheMnXF/whNUnEMxzcgYRK3 xjlsJ41JvCplpQY/+yzOGwWtMobzasntqtLpcZpwkZAUjIJNVx73dWVxk2akb2anTS IBlNvTSrnvBPXdvIJI4EKTFwpNr42ZRYDawtAFUA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([83.52.229.196]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MPokD-1jbloF3z63-00MsVj; Tue, 14 Apr 2020 17:39:41 +0200 From: Oscar Carter To: Forest Bond , Greg Kroah-Hartman Cc: Oscar Carter , Quentin Deslandes , Malcolm Priestley , Dan Carpenter , Amir Mahdi Ghorbanian , "John B. Wyatt IV" , Colin Ian King , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] staging: vt6656: Use define instead of magic number for tx_rate Date: Tue, 14 Apr 2020 17:38:47 +0200 Message-Id: <20200414153849.5785-4-oscar.carter@gmx.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200414153849.5785-1-oscar.carter@gmx.com> References: <20200414153849.5785-1-oscar.carter@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:lxuWUOiVxukpQ2P1v0kvR0BBk5n4QGoskbxEewLD2Q2qXZ6+QNZ JXOXB/XgnuoS/bgvRFm7LhcZX6TxmTt4QEd2e0yT68u3VkwECvKNCVYoxpmxx1p+GFL2GLc 1qZUYdaYDdpd4d5mq2tXnitAsQZnNpeK8kXWTTJdY/jw27Czr36oafo4rE043sdCJ1QnE1N 1e8fPVj5LQVEGIYr13oWg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:T4fp2YI8ohc=:OHdWikw8B0zzCa595ZMPoV j1Ti4zhYfcSJdu03kXfZFaG6Tk5aLGK1YkfWB01k8DXtxNT38UIO7DTxbRLwLQM6H5yjJiQd2 T2YT34U0fHl/inq1C64CZHzp3OF106H3xWPee/m2RiFjoTW/Mz2IIX01jR56B5/27BrH7EXMJ j9+CEqzTs84U+Yq4DFIdYPDVhotKGtuqZjH92mBDYCkPQsx4U5USliuBAXj3N8r/mEygO/665 83RPVmIu3KX2s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k List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the define RATE_11M present in the file "device.h" instead of the magic number 3. So the code is more clear. Reviewed-by: Dan Carpenter Signed-off-by: Oscar Carter =2D-- drivers/staging/vt6656/baseband.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/ba= seband.c index e0352405e4cf..149c9bba7108 100644 =2D-- a/drivers/staging/vt6656/baseband.c +++ b/drivers/staging/vt6656/baseband.c @@ -24,6 +24,7 @@ #include #include +#include "device.h" #include "mac.h" #include "baseband.h" #include "rf.h" @@ -221,7 +222,7 @@ unsigned int vnt_get_frame_time(u8 preamble_type, u8 p= kt_type, rate =3D (unsigned int)vnt_frame_time[tx_rate]; - if (tx_rate <=3D 3) { + if (tx_rate <=3D RATE_11M) { if (preamble_type =3D=3D PREAMBLE_SHORT) preamble =3D 96; else =2D- 2.20.1