diff options
Diffstat (limited to 'extras/cdrom_id')
-rw-r--r-- | extras/cdrom_id/cdrom_id.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c index 889b2342e8..83e95d5812 100644 --- a/extras/cdrom_id/cdrom_id.c +++ b/extras/cdrom_id/cdrom_id.c @@ -869,12 +869,10 @@ int main(int argc, char *argv[]) goto print; /* get session/track info */ - if (cd_media_toc(udev, fd) < 0) - goto print; + cd_media_toc(udev, fd); /* get writable media state */ - if (cd_media_info(udev, fd) < 0) - goto print; + cd_media_info(udev, fd); print: printf("ID_CDROM=1\n"); |