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/ssn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/isimodem/ssn.c') diff --git a/drivers/isimodem/ssn.c b/drivers/isimodem/ssn.c index 797ba9d2..402a48a5 100644 --- a/drivers/isimodem/ssn.c +++ b/drivers/isimodem/ssn.c @@ -51,11 +51,11 @@ static int isi_ssn_probe(struct ofono_ssn *ssn, unsigned int vendor, GIsiModem *idx = user; struct ssn_data *data = g_try_new0(struct ssn_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_ssn_set_data(ssn, data); @@ -67,7 +67,7 @@ static void isi_ssn_remove(struct ofono_ssn *ssn) { struct ssn_data *data = ofono_ssn_get_data(ssn); - if (!data) + if (data == NULL) return; ofono_ssn_set_data(ssn, NULL); -- cgit v1.2.3