]> git.dujemihanovic.xyz Git - u-boot.git/commit
fpga: Simplify error path in fpga_add
authorMichal Simek <michal.simek@xilinx.com>
Fri, 26 Jan 2018 12:17:04 +0000 (13:17 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 23 Mar 2018 08:34:42 +0000 (09:34 +0100)
commitcda1e3fb0f390b3cc4df1be25c0d6557e81ec3bb
treec431267e84d257c490c05458acee3de9694f36dc
parent734bf172e9db4e3afb24772c368bbb7632bf3921
fpga: Simplify error path in fpga_add

Check !desc earlier to simplify code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
Reviewed-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
drivers/fpga/fpga.c