diff options
author | Vivek Goyal <vgoyal@redhat.com> | 2018-05-11 11:49:28 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-07-20 09:56:08 +0200 |
commit | 027065b726434d2a95a5cc516129be765e27ecf8 (patch) | |
tree | 5f8c3aa847bf0eceab9c4cf9e384d46e4909378f /samples | |
parent | 0c2888749363645d62cc48852d0af98d5ceef332 (diff) | |
download | linux-027065b726434d2a95a5cc516129be765e27ecf8.tar.bz2 |
ovl: Use out_err instead of out_nomem
Right now we use goto out_nomem which assumes error code is -ENOMEM. But
there are other errors returned like -ESTALE as well. So instead of
out_nomem, use out_err which will do ERR_PTR(err). That way one can put
error code in err and jump to out_err.
This just code reorganization and no change of functionality.
I am about to add more code and this organization helps laying more code
and error paths on top of it.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions