]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: rtl_pci: Simplify some code be eliminating extraneous variables
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 1 Nov 2017 15:29:18 +0000 (10:29 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 8 Nov 2017 12:30:16 +0000 (14:30 +0200)
commit0a397109eb015cc86d80823c51de2f0dffca78c8
tree7dd410136059d270d544a75cf8f42bb41645e026
parente672f49d26f0ec9a380cea94341c896078fa0c00
rtlwifi: rtl_pci: Simplify some code be eliminating extraneous variables

In several places, the code assigns a variable inside an "if" or "case"
block, but uses it only once. The code is simplified by eliminating
the extraneous variable. With this change, one level of indenting is
saved.

This patch does not cause any functional changes in the binary code.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Ping-Ke Shih <pkshih@realtek.com>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/pci.c