summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/call-barring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/call-barring.c b/src/call-barring.c
index bb155307..649826e7 100644
--- a/src/call-barring.c
+++ b/src/call-barring.c
@@ -1075,7 +1075,7 @@ static void call_barring_remove(struct ofono_atom *atom)
if (cb == NULL)
return;
- if (cb->driver && cb->driver->remove)
+ if (cb->driver != NULL && cb->driver->remove != NULL)
cb->driver->remove(cb);
g_free(cb);