提交 177f3d40 编写于 作者: M Mingjie Shen 提交者: mysterywolf

[adc] remove dead code

The variable result_str is never used after this assignment.
上级 aa4aeedb
......@@ -265,7 +265,6 @@ static int adc(int argc, char **argv)
if(argc == 3)
{
voltage = rt_adc_voltage(adc_device, atoi(argv[2]));
result_str = (result == RT_EOK) ? "success" : "failure";
rt_kprintf("%s channel %d voltage is %d.%03dV \n", adc_device->parent.parent.name, (rt_base_t)atoi(argv[2]), voltage / 1000, voltage % 1000);
}
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册