]> sigrok.org Git - libsigrok.git/commit
asix-sigma: Weed out in-condition assignments
authorMarek Vasut <redacted>
Sun, 20 Apr 2014 15:58:35 +0000 (17:58 +0200)
committerBert Vermeulen <redacted>
Wed, 30 Apr 2014 16:45:50 +0000 (09:45 -0700)
commit8bbf7627df3706fd1fee6d094c09a010dcda9b1a
tree9a14e7f75bd9b9d4ccd167a80afa4e8a5e6e7928
parent499b17e9c043e1ec92e71095289d63f09b981eea
asix-sigma: Weed out in-condition assignments

Remove all those if ((ret = foo(bar)) < 0) constructs from upload_firmware()
function. This is just a confusing programming practice, kill it. While at it,
replace all the uses of &devc->ftdic with plain ftdic , which is defined at
the begining.

Signed-off-by: Marek Vasut <redacted>
hardware/asix-sigma/asix-sigma.c