libion: return -errno from ion_close
Return -errno from ion_close instead of -1 on error. Change-Id: Idb828aa4b4d1a660b79d2dba8be32f306eac959d
This commit is contained in:
parent
51b6e42231
commit
aab47b293f
|
@ -40,7 +40,10 @@ int ion_open()
|
|||
|
||||
int ion_close(int fd)
|
||||
{
|
||||
return close(fd);
|
||||
int ret = close(fd);
|
||||
if (ret < 0)
|
||||
return -errno;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int ion_ioctl(int fd, int req, void *arg)
|
||||
|
|
Loading…
Reference in New Issue