summaryrefslogtreecommitdiffstats
path: root/src/call-volume.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-11-27 17:39:03 -0200
committerDenis Kenzior <denkenz@gmail.com>2010-11-29 13:27:15 -0600
commitb210838e87b737911a9bfbcf75ccd3d78736dad7 (patch)
tree91a91e0a120c70283b5ae3af0776cc19ab36fc76 /src/call-volume.c
parent42bafa260a844c46d1de2f878464165bfad0ab75 (diff)
downloadofono-b210838e87b737911a9bfbcf75ccd3d78736dad7.tar.bz2
core: explicitly compare pointers to NULL
This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
Diffstat (limited to 'src/call-volume.c')
-rw-r--r--src/call-volume.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/call-volume.c b/src/call-volume.c
index 6f692f32..1e12d810 100644
--- a/src/call-volume.c
+++ b/src/call-volume.c
@@ -236,7 +236,7 @@ static DBusMessage *cv_set_property(DBusConnection *conn, DBusMessage *msg,
if (g_str_equal(property, "SpeakerVolume") == TRUE) {
unsigned char percent;
- if (!cv->driver->speaker_volume)
+ if (cv->driver->speaker_volume == NULL)
return __ofono_error_not_implemented(msg);
if (dbus_message_iter_get_arg_type(&var) != DBUS_TYPE_BYTE)
@@ -258,7 +258,7 @@ static DBusMessage *cv_set_property(DBusConnection *conn, DBusMessage *msg,
} else if (g_str_equal(property, "MicrophoneVolume") == TRUE) {
unsigned char percent;
- if (!cv->driver->microphone_volume)
+ if (cv->driver->microphone_volume == NULL)
return __ofono_error_not_implemented(msg);
if (dbus_message_iter_get_arg_type(&var) != DBUS_TYPE_BYTE)
@@ -280,7 +280,7 @@ static DBusMessage *cv_set_property(DBusConnection *conn, DBusMessage *msg,
} else if (g_str_equal(property, "Muted") == TRUE) {
dbus_bool_t muted;
- if (!cv->driver->mute)
+ if (cv->driver->mute == NULL)
return __ofono_error_not_implemented(msg);
if (dbus_message_iter_get_arg_type(&var) != DBUS_TYPE_BOOLEAN)