Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1632793
| From | Greg KH <gregkh@linuxfoundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] staging: rtl8192u: Improve readability and fix sparse warnings: cast from restricted __le16 |
| Date | 2017-04-28 12:40 +0200 |
| Message-ID | <tBbtE-64f-27@gated-at.bofh.it> (permalink) |
| References | <tzcat-ib-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, Apr 22, 2017 at 11:55:23PM +0100, Tuomo Rinne wrote: > This patch fixes following sparse warnings: > > drivers/staging/rtl8192u//r8192U_dm.c:2307:49: warning: cast from restricted __le16 > drivers/staging/rtl8192u//r8192U_dm.c:2308:44: warning: cast from restricted __le16 > drivers/staging/rtl8192u//r8192U_dm.c:2309:44: warning: cast from restricted __le16 > > In order to avoid the warnings the u4bAcParam variable is constructed > using the cpu's endianness and in case of big endian architectures the > variable is converted back to little endian before passed to write_nic_dword > function. > > Also the patch improves readability by getting rid of unnecessary scope > and splitting complex variable construction to multiple lines. Don't do multiple things in the same patch, please break this up into different patches, each one doing only one thing. thanks, greg k-h
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH] staging: rtl8192u: Improve readability and fix sparse warnings: cast from restricted __le16 Greg KH <gregkh@linuxfoundation.org> - 2017-04-28 12:40 +0200
[PATCH 1/3] staging: rtl8192u: Remove unnecessary scope Tuomo Rinne <tuomo.rinne@gmail.com> - 2017-04-29 13:40 +0200
[PATCH 2/3] staging: rtl8192u: Improve code readability Tuomo Rinne <tuomo.rinne@gmail.com> - 2017-04-29 13:40 +0200
[PATCH 3/3] staging: rtl8192u: Convert u4bAcParam back to little-endian after construction Tuomo Rinne <tuomo.rinne@gmail.com> - 2017-04-29 13:40 +0200
csiph-web