summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-03-06 23:49:10 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-03-11 07:55:45 +0100
commit05374a6eded63894263a27886ef19056362967be (patch)
treede9a4ce6cda172d9c91cd9092ad2b61b3feda739 /common
parent369d39adfe79334db5ed04d6f2acaf096c68b8a2 (diff)
downloadbarebox-05374a6eded63894263a27886ef19056362967be.tar.gz
libfile: Make failure path of open_and_lseek() consistent
Change the code of open_and_lseek() to make sure that opened file is closed in every failure path as well. While at it make sure we don't mix returning function return code and returning errno by opting to always return the former. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions