]> 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)
commit688d7d41880f9d982b1afa38d1cc3db015b56109
tree7dd410136059d270d544a75cf8f42bb41645e026
parentdd0c44d709225b27985977680de2a7187f967699
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