]> asedeno.scripts.mit.edu Git - linux.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)
commit5f647f4dfe419106274b6a509e33ee4a5db1133f
tree7dd410136059d270d544a75cf8f42bb41645e026
parentae0122b6793d51f04b3841f900c8aa5aeee40ee3
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