diff options
Diffstat (limited to 'drivers/hfpmodem/call-volume.c')
-rw-r--r-- | drivers/hfpmodem/call-volume.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hfpmodem/call-volume.c b/drivers/hfpmodem/call-volume.c index d3807f7c..f985175b 100644 --- a/drivers/hfpmodem/call-volume.c +++ b/drivers/hfpmodem/call-volume.c @@ -73,7 +73,7 @@ static void hfp_speaker_volume(struct ofono_call_volume *cv, struct cb_data *cbd = cb_data_new(cb, data); char buf[64]; - if (!cbd) + if (cbd == NULL) goto error; vd->sp_volume = percent; @@ -100,7 +100,7 @@ static void hfp_microphone_volume(struct ofono_call_volume *cv, struct cb_data *cbd = cb_data_new(cb, data); char buf[64]; - if (!cbd) + if (cbd == NULL) goto error; vd->mic_volume = percent; |