summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-02-04 16:17:54 -0800
committerBrian Behlendorf <[email protected]>2011-02-10 09:27:22 -0800
commitb3b4f547f9243c0c1a446c74574a1f737e29dee6 (patch)
tree45a8a3419ec283b8e50a63a7371a8fc0a0627598 /lib
parent8926ab7a50d60d855e4d49d2ed7bdef49dd56149 (diff)
Remove useless libefi warnings
These two warnings in libefi serve no real purpose. When running without DEBUG they are already supressed, and even when DEBUG is enabled all they indicate is the device doesn't already have an EFI label. For a Linux machine this is probably the common case.
Diffstat (limited to 'lib')
-rw-r--r--lib/libefi/rdwr_efi.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/libefi/rdwr_efi.c b/lib/libefi/rdwr_efi.c
index da71e3486..2af0c4e2e 100644
--- a/lib/libefi/rdwr_efi.c
+++ b/lib/libefi/rdwr_efi.c
@@ -269,19 +269,12 @@ efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc)
struct uuid uuid;
struct dk_cinfo dki_info;
- if (read_disk_info(fd, &capacity, &lbsize) != 0) {
- if (efi_debug)
- (void) fprintf(stderr,
- "couldn't read disk information\n");
+ if (read_disk_info(fd, &capacity, &lbsize) != 0)
return (-1);
- }
+
#if defined(__linux__)
- if (efi_get_info(fd, &dki_info) != 0) {
- if (efi_debug)
- (void) fprintf(stderr,
- "couldn't read disk information\n");
+ if (efi_get_info(fd, &dki_info) != 0)
return (-1);
- }
if (dki_info.dki_partition != 0)
return (-1);