summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/usb.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2015-08-03 23:15:53 +0200
committerKalle Valo <kvalo@codeaurora.org>2015-08-13 14:32:49 +0200
commit3544f9f150bb58a3678c161a505b186893971c8a (patch)
treeb32f0ec735d016f520b5c81b8f98e05f1d50e46c /drivers/net/wireless/mwifiex/usb.c
parentrtlwifi: rtl8192ee: Fix firmware header endian issues (diff)
downloadlinux-3544f9f150bb58a3678c161a505b186893971c8a.tar.xz
linux-3544f9f150bb58a3678c161a505b186893971c8a.zip
rtlwifi: rtl8192c-common: Fix two typos
In this driver, two variables are masked by one quantity, and then tested against a second number with more bits that the mask. Accordingly, the test always fails. To minimize the possibility of such typos, a symbolic definition of the mask is created and used. The separate load and mask operations are also combined into a single statement. Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: David Binderman <dcb314@hotmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex/usb.c')
0 files changed, 0 insertions, 0 deletions