commit | 951e3956863270f664eea42dd359fea6402ce59c | [log] [tgz] |
---|---|---|
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | Sat Mar 21 09:58:36 2020 +0100 |
committer | Sekhar Nori <nsekhar@ti.com> | Wed Jul 22 00:34:21 2020 +0530 |
tree | d7563ea9f1aba2817b724ae9cc4a42042ee249ed | |
parent | 66ed86d6377abdf7a2dd8e2654e5a90e65201cd7 [diff] |
ARM: davinci: dm646x-evm: Simplify error handling in 'evm_sw_setup()' There is no need to call 'gpio_free(evm_sw_gpio[i])' for these error handling cases, it is already done in the error handling path at label 'out_free'. Simplify the code and axe a few LoC. While at it, also explicitly return 0 in the normal path. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Sekhar Nori <nsekhar@ti.com>