summaryrefslogtreecommitdiffstats
path: root/drivers/nwmodem/radio-settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nwmodem/radio-settings.c')
-rw-r--r--drivers/nwmodem/radio-settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nwmodem/radio-settings.c b/drivers/nwmodem/radio-settings.c
index 2f5527e1..36fab393 100644
--- a/drivers/nwmodem/radio-settings.c
+++ b/drivers/nwmodem/radio-settings.c
@@ -170,7 +170,7 @@ static int nw_radio_settings_probe(struct ofono_radio_settings *rs,
struct radio_settings_data *rsd;
rsd = g_try_new0(struct radio_settings_data, 1);
- if (!rsd)
+ if (rsd == NULL)
return -ENOMEM;
rsd->chat = g_at_chat_clone(chat);