From b82a7f851159a42f6ca38a2357551a94a4402e11 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 27 Nov 2010 17:38:56 -0200 Subject: drivers: 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 // --- drivers/calypsomodem/voicecall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/calypsomodem/voicecall.c') diff --git a/drivers/calypsomodem/voicecall.c b/drivers/calypsomodem/voicecall.c index b2c9a962..0e6a3889 100644 --- a/drivers/calypsomodem/voicecall.c +++ b/drivers/calypsomodem/voicecall.c @@ -64,7 +64,7 @@ static void calypso_template(struct ofono_voicecall *vc, const char *cmd, struct voicecall_data *vd = ofono_voicecall_get_data(vc); struct cb_data *cbd = cb_data_new(cb, data); - if (!cbd) + if (cbd == NULL) goto error; if (g_at_chat_send(vd->chat, cmd, none_prefix, @@ -210,7 +210,7 @@ static void calypso_send_dtmf(struct ofono_voicecall *vc, const char *dtmf, /* strlen("+VTS=\"T\";") = 9 + initial AT + null */ buf = g_try_new(char, len * 9 + 3); - if (!buf) { + if (buf == NULL) { CALLBACK_WITH_FAILURE(cb, data); return; } @@ -390,7 +390,7 @@ static int calypso_voicecall_probe(struct ofono_voicecall *vc, struct voicecall_data *vd; vd = g_try_new0(struct voicecall_data, 1); - if (!vd) + if (vd == NULL) return -ENOMEM; vd->chat = g_at_chat_clone(chat); -- cgit v1.2.3