summaryrefslogtreecommitdiff
path: root/drivers/dfu
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2014-04-24 10:24:53 +0200
committerMarek Vasut <marex@denx.de>2014-04-30 10:30:57 +0200
commit672ad18c276e6c37e2e140294ec35ee96ae47d38 (patch)
tree63c4795505434ce4cde58568835d6a7a9b06a36b /drivers/dfu
parente6e493f341b0488843efe0c5b2c1274997fbbfe8 (diff)
downloadu-boot-imx-672ad18c276e6c37e2e140294ec35ee96ae47d38.zip
u-boot-imx-672ad18c276e6c37e2e140294ec35ee96ae47d38.tar.gz
u-boot-imx-672ad18c276e6c37e2e140294ec35ee96ae47d38.tar.bz2
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')
-rw-r--r--drivers/dfu/dfu.c2
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)