mirror of git://git.sysmocom.de/ofono
simfs: Call callback even if impl isn't provided
This commit is contained in:
parent
97359e7f7b
commit
7852f25079
|
@ -901,8 +901,10 @@ int sim_fs_read(struct ofono_sim_context *context, int id,
|
||||||
if (fs->driver == NULL)
|
if (fs->driver == NULL)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (fs->driver->read_file_info == NULL)
|
if (fs->driver->read_file_info == NULL) {
|
||||||
|
cb(0, 0, 0, NULL, 0, data);
|
||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
|
}
|
||||||
|
|
||||||
if (fs->op_q == NULL)
|
if (fs->op_q == NULL)
|
||||||
fs->op_q = g_queue_new();
|
fs->op_q = g_queue_new();
|
||||||
|
|
Loading…
Reference in New Issue