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/atmodem/devinfo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/atmodem/devinfo.c') diff --git a/drivers/atmodem/devinfo.c b/drivers/atmodem/devinfo.c index 4d3cf983..84ff8988 100644 --- a/drivers/atmodem/devinfo.c +++ b/drivers/atmodem/devinfo.c @@ -92,7 +92,7 @@ static void at_query_manufacturer(struct ofono_devinfo *info, struct cb_data *cbd = cb_data_new(cb, data); GAtChat *chat = ofono_devinfo_get_data(info); - if (!cbd) + if (cbd == NULL) goto error; cbd->user = "+CGMI:"; @@ -113,7 +113,7 @@ static void at_query_model(struct ofono_devinfo *info, struct cb_data *cbd = cb_data_new(cb, data); GAtChat *chat = ofono_devinfo_get_data(info); - if (!cbd) + if (cbd == NULL) goto error; cbd->user = "+CGMM:"; @@ -134,7 +134,7 @@ static void at_query_revision(struct ofono_devinfo *info, struct cb_data *cbd = cb_data_new(cb, data); GAtChat *chat = ofono_devinfo_get_data(info); - if (!cbd) + if (cbd == NULL) goto error; cbd->user = "+CGMR:"; @@ -155,7 +155,7 @@ static void at_query_serial(struct ofono_devinfo *info, struct cb_data *cbd = cb_data_new(cb, data); GAtChat *chat = ofono_devinfo_get_data(info); - if (!cbd) + if (cbd == NULL) goto error; cbd->user = "+CGSN:"; -- cgit v1.2.3