From 67f78f680d4b72d24a280be528a00778dcdf28dc Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 27 Nov 2010 17:39:02 -0200 Subject: plugins: explicitly compare pointers to NULL This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // --- plugins/smart-messaging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/smart-messaging.c') diff --git a/plugins/smart-messaging.c b/plugins/smart-messaging.c index e9437969..e7889f26 100644 --- a/plugins/smart-messaging.c +++ b/plugins/smart-messaging.c @@ -207,7 +207,7 @@ static DBusMessage *smart_messaging_send_vcard(DBusConnection *conn, msg_list = sms_datagram_prepare(to, bytes, len, ref, use_16bit_ref, 0, VCARD_DST_PORT, TRUE, FALSE); - if (!msg_list) + if (msg_list == NULL) return __ofono_error_invalid_format(msg); flags = OFONO_SMS_SUBMIT_FLAG_RETRY | OFONO_SMS_SUBMIT_FLAG_EXPOSE_DBUS; @@ -250,7 +250,7 @@ static DBusMessage *smart_messaging_send_vcal(DBusConnection *conn, msg_list = sms_datagram_prepare(to, bytes, len, ref, use_16bit_ref, 0, VCAL_DST_PORT, TRUE, FALSE); - if (!msg_list) + if (msg_list == NULL) return __ofono_error_invalid_format(msg); flags = OFONO_SMS_SUBMIT_FLAG_RETRY | OFONO_SMS_SUBMIT_FLAG_EXPOSE_DBUS; -- cgit v1.2.3