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/isimodem/call-meter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/isimodem/call-meter.c') diff --git a/drivers/isimodem/call-meter.c b/drivers/isimodem/call-meter.c index 336a077e..2fc74c8a 100644 --- a/drivers/isimodem/call-meter.c +++ b/drivers/isimodem/call-meter.c @@ -90,11 +90,11 @@ static int isi_call_meter_probe(struct ofono_call_meter *cm, GIsiModem *idx = user; struct call_meter_data *data = g_try_new0(struct call_meter_data, 1); - if (!data) + if (data == NULL) return -ENOMEM; data->client = g_isi_client_create(idx, PN_SS); - if (!data->client) + if (data->client == NULL) return -ENOMEM; ofono_call_meter_set_data(cm, data); -- cgit v1.2.3