]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: rtl8192c-common: Fix two typos
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 3 Aug 2015 21:15:53 +0000 (16:15 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 13 Aug 2015 12:32:49 +0000 (15:32 +0300)
commit74a0bb056f4ca688e593c61a28063699a6715c1a
treeb32f0ec735d016f520b5c81b8f98e05f1d50e46c
parent14ddf40e5f6e0b8239fa0a4b76a481a76018e0db
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>
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c