diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2014-04-24 08:24:53 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2014-04-30 08:30:57 (GMT) |
commit | 672ad18c276e6c37e2e140294ec35ee96ae47d38 (patch) | |
tree | 63c4795505434ce4cde58568835d6a7a9b06a36b /drivers/dfu/dfu.c | |
parent | e6e493f341b0488843efe0c5b2c1274997fbbfe8 (diff) | |
download | u-boot-672ad18c276e6c37e2e140294ec35ee96ae47d38.tar.xz |
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>
Diffstat (limited to 'drivers/dfu/dfu.c')
-rw-r--r-- | drivers/dfu/dfu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 8a09aaf..51b1026 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -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) |