diff options
author | Aki Niemi <aki.niemi@nokia.com> | 2010-10-19 11:28:06 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2010-10-19 15:06:35 +0300 |
commit | 255782f8c2ff64991b362fb0e0554bd2adb7069e (patch) | |
tree | 86d891e0259255cc78f6344da69bbb33ad5a7b0c /drivers/isimodem/isiutil.h | |
parent | fd74feac0d7c5bbba4653b0b5c43c458c6874971 (diff) | |
download | ofono-255782f8c2ff64991b362fb0e0554bd2adb7069e.tar.bz2 |
isimodem: Fix request cleanup code
Adds a check for when the driver is being removed, in which case no
new ISI requests should be generated.
Diffstat (limited to 'drivers/isimodem/isiutil.h')
-rw-r--r-- | drivers/isimodem/isiutil.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/isimodem/isiutil.h b/drivers/isimodem/isiutil.h index 73508afa..d5b73cc6 100644 --- a/drivers/isimodem/isiutil.h +++ b/drivers/isimodem/isiutil.h @@ -34,7 +34,6 @@ static inline struct isi_cb_data *isi_cb_data_new(void *user, void *cb, struct isi_cb_data *ret; ret = g_try_new0(struct isi_cb_data, 1); - if (ret) { ret->cb = cb; ret->data = data; |