mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
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: Lukasz Majewski <l.majewski@samsung.com>
This commit is contained in:
parent
e6e493f341
commit
672ad18c27
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue