From 661035a6b89eb1cb8ace6db27719b8a661a84537 Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Wed, 22 Jan 2020 10:14:19 -0800 Subject: [PATCH] west: runners: stm32: Remove unecessary assignment msg_text is unconditionally assigned later and this inital value is never used. Signed-off-by: Flavio Ceolin --- scripts/west_commands/runners/stm32flash.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/west_commands/runners/stm32flash.py b/scripts/west_commands/runners/stm32flash.py index 19141315c83..5d3176caa4a 100644 --- a/scripts/west_commands/runners/stm32flash.py +++ b/scripts/west_commands/runners/stm32flash.py @@ -95,7 +95,6 @@ class Stm32flashBinaryRunner(ZephyrBinaryRunner): '-m', self.serial_mode] action = self.action.lower() - msg_text = "something went wrong" if action == 'info': # show device information and exit