diff options
Diffstat (limited to 'cgpt/cgpt_show.c')
-rw-r--r-- | cgpt/cgpt_show.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cgpt/cgpt_show.c b/cgpt/cgpt_show.c index 2b882778..7240a6a7 100644 --- a/cgpt/cgpt_show.c +++ b/cgpt/cgpt_show.c @@ -385,9 +385,7 @@ int CgptShow(CgptShowParams *params) { params->drive_size)) return CGPT_FAILED; - if (GptShow(&drive, params)) - return CGPT_FAILED; - + int ret = GptShow(&drive, params); DriveClose(&drive, 0); - return CGPT_OK; + return ret; } |