提交 8fa11d1c 编写于 作者: A Alexander Shishkin

stm class: Remove a pointless line

No point in explicitly setting something to zero right after we
explicitly checked that it is zero. Fix this.
Reported-by: NAlan Cox <alan.cox@intel.com>
Signed-off-by: NAlexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: NLaurent Fert <laurent.fert@intel.com>
上级 c8be4899
...@@ -546,8 +546,6 @@ static int stm_char_policy_set_ioctl(struct stm_file *stmf, void __user *arg) ...@@ -546,8 +546,6 @@ static int stm_char_policy_set_ioctl(struct stm_file *stmf, void __user *arg)
if (ret) if (ret)
goto err_free; goto err_free;
ret = 0;
if (stm->data->link) if (stm->data->link)
ret = stm->data->link(stm->data, stmf->output.master, ret = stm->data->link(stm->data, stmf->output.master,
stmf->output.channel); stmf->output.channel);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册