projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6e493f
)
dfu:fix: Replace wrong return value with proper one
author
Lukasz Majewski
<l.majewski@samsung.com>
Thu, 24 Apr 2014 08:24:53 +0000
(10:24 +0200)
committer
Marek Vasut
<marex@denx.de>
Wed, 30 Apr 2014 08:30:57 +0000
(10:30 +0200)
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>
drivers/dfu/dfu.c
patch
|
blob
|
history
diff --git
a/drivers/dfu/dfu.c
b/drivers/dfu/dfu.c
index 8a09aafbf246b5059b6d6d7ec0d3bcc16448b66d..51b10263b8824e947c4c4cdbbd272fb1eb2fb46b 100644
(file)
--- 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)