From: Michael Straube <straube.linux@gmail.com>
To: gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
Michael Straube <straube.linux@gmail.com>
Subject: [PATCH v2 1/8] staging: rtl8188eu: simplify calculation
Date: Tue, 18 Sep 2018 10:07:04 +0200 [thread overview]
Message-ID: <20180918080711.21594-1-straube.linux@gmail.com> (raw)
Simplify calcualation: * 10 / 2 can be reduced to * 5
Also cleans missing spaces checkpatch issues.
Signed-off-by: Michael Straube <straube.linux@gmail.com>
---
changes in v2: fixed typo in patch 1/8 commit message
Simpliy -> Simplify
drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c b/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c
index c040f185074b..0880f18520a0 100644
--- a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c
+++ b/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c
@@ -575,7 +575,7 @@ u16 rtw_get_cur_max_rate(struct adapter *adapter)
i++;
}
- max_rate = max_rate*10/2;
+ max_rate *= 5;
}
return max_rate;
--
2.19.0
next reply other threads:[~2018-09-18 8:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-18 8:07 Michael Straube [this message]
2018-09-18 8:07 ` [PATCH v2 2/8] staging: rtl8188eu: remove unnecessary parentheses Michael Straube
2018-09-18 8:07 ` [PATCH v2 3/8] staging: rtl8188eu: remove whitespace Michael Straube
2018-09-18 8:07 ` [PATCH v2 4/8] staging: rtl8188eu: fix comparsions to true Michael Straube
2018-09-18 8:07 ` [PATCH v2 5/8] staging: rtl8188eu: fix comparsions to false Michael Straube
2018-09-18 8:07 ` [PATCH v2 6/8] staging: rtl8188eu: add missing spaces around operators Michael Straube
2018-09-18 8:07 ` [PATCH v2 7/8] staging: rtl8188eu: fix lines over 80 characters Michael Straube
2018-09-18 8:07 ` [PATCH v2 8/8] staging: rtl8188eu: simplify function comments Michael Straube
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180918080711.21594-1-straube.linux@gmail.com \
--to=straube.linux@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).