[PATCH] Fix unnecessary checking for empty phones list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Removed not needed anymore checking for empty list of phone numbers.
---
 plugins/vcard.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/plugins/vcard.c b/plugins/vcard.c
index 9beb62a..80f8265 100644
--- a/plugins/vcard.c
+++ b/plugins/vcard.c
@@ -295,11 +295,6 @@ static void vcard_printf_end(GString *vcards)
 void phonebook_add_contact(GString *vcards, struct phonebook_contact *contact,
 					uint64_t filter, uint8_t format)
 {
-	/* There's really nothing to do */
-	if ((contact->numbers == NULL && (contact->fullname == NULL ||
-						contact->fullname[0] == '\0')))
-		return;
-
 	if (format == FORMAT_VCARD30)
 		filter |= (FILTER_VERSION | FILTER_FN | FILTER_N | FILTER_TEL);
 	else if (format == FORMAT_VCARD21)
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux