From: Lukasz Majewski Date: Thu, 24 Apr 2014 08:24:53 +0000 (+0200) Subject: dfu:fix: Replace wrong return value with proper one X-Git-Tag: v2014.07-rc1~8^2~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=672ad18c276e6c37e2e140294ec35ee96ae47d38;p=oweals%2Fu-boot.git 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 --- diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 8a09aafbf2..51b10263b8 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)