提交 672ad18c 编写于 作者: L Lukasz Majewski 提交者: Marek Vasut

dfu:fix: Replace wrong return value with proper one

This patch remove always false (since we tested ret = 0) ternary operator
with ret value returned.
Signed-off-by: NLukasz Majewski <l.majewski@samsung.com>
上级 e6e493f3
......@@ -219,7 +219,7 @@ int dfu_write(struct dfu_entity *dfu, void *buf, int size, int blk_seq_num)
ret = tret;
}
return ret = 0 ? size : ret;
return ret;
}
static int dfu_read_buffer_fill(struct dfu_entity *dfu, void *buf, int size)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册