From: Colin King <hidden> Date: 2017-11-04 19:38:08
From: Colin Ian King <redacted>
cfg_cmd is initialized to zero and this value is never read, instead
it is over-written in the start of a do-while loop. Remove the
redundant initialization. Cleans up clang warning:
drivers/net/wireless/realtek/rtlwifi/core.c:1750:22: warning: Value
stored to 'cfg_cmd' during its initialization is never read
Signed-off-by: Colin Ian King <redacted>
---
drivers/net/wireless/realtek/rtlwifi/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Larry Finger <hidden> Date: 2017-11-04 20:26:44
On 11/04/2017 02:37 PM, Colin King wrote:
From: Colin Ian King <redacted>
cfg_cmd is initialized to zero and this value is never read, instead
it is over-written in the start of a do-while loop. Remove the
redundant initialization. Cleans up clang warning:
drivers/net/wireless/realtek/rtlwifi/core.c:1750:22: warning: Value
stored to 'cfg_cmd' during its initialization is never read
Signed-off-by: Colin Ian King <redacted>
Looks OK to me.
Acked-by: Larry Finger <redacted>
Thanks,
Larry
From: Kalle Valo <hidden> Date: 2017-11-08 12:45:21
Colin Ian King [off-list ref] wrote:
From: Colin Ian King <redacted>
cfg_cmd is initialized to zero and this value is never read, instead
it is over-written in the start of a do-while loop. Remove the
redundant initialization. Cleans up clang warning:
drivers/net/wireless/realtek/rtlwifi/core.c:1750:22: warning: Value
stored to 'cfg_cmd' during its initialization is never read
Signed-off-by: Colin Ian King <redacted>
Acked-by: Larry Finger <redacted>