realtek: Fix self assignment

Cppcheck shows self initialization error, which is an obvious bug.

Basing on logic of similar fragment below I assigned to this variable,
value `RTL838X_LED_GLB_CTRL` which I think is proper.

Signed-off-by: Rafał Mikrut <mikrutrafal@protonmail.com>
This commit is contained in:
Rafał Mikrut 2020-12-08 21:54:40 +01:00 committed by Petr Štetiar
parent d82c191283
commit 848d668427

View File

@ -357,7 +357,7 @@ static int rtl838x_gpio_probe(struct platform_device *pdev)
} }
if (soc_info.family == RTL8380_FAMILY_ID) { if (soc_info.family == RTL8380_FAMILY_ID) {
gpios->led_glb_ctrl = gpios->led_glb_ctrl; gpios->led_glb_ctrl = RTL838X_LED_GLB_CTRL;
gpios->led_sw_ctrl = RTL838X_LED_SW_CTRL; gpios->led_sw_ctrl = RTL838X_LED_SW_CTRL;
gpios->led_sw_p_ctrl = rtl838x_led_sw_p_ctrl; gpios->led_sw_p_ctrl = rtl838x_led_sw_p_ctrl;
gpios->led_sw_p_en_ctrl = rtl838x_led_sw_p_en_ctrl; gpios->led_sw_p_en_ctrl = rtl838x_led_sw_p_en_ctrl;