Loading drivers/soc/qcom/qdsp6v2/voice_svc.c +3 −11 Original line number Diff line number Diff line Loading @@ -504,7 +504,7 @@ static int voice_svc_open(struct inode *inode, struct file *file) return 0; } static int voice_svc_flush(struct file *file, fl_owner_t id) static int voice_svc_release(struct inode *inode, struct file *file) { int ret = 0; struct apr_response_list *resp = NULL; Loading Loading @@ -553,18 +553,11 @@ static int voice_svc_flush(struct file *file, fl_owner_t id) spin_unlock_irqrestore(&prtd->response_lock, spin_flags); done: return ret; } static int voice_svc_release(struct inode *inode, struct file *file) { pr_debug("%s\n", __func__); kfree(file->private_data); file->private_data = NULL; return 0; done: return ret; } static const struct file_operations voice_svc_fops = { Loading @@ -572,7 +565,6 @@ static const struct file_operations voice_svc_fops = { .open = voice_svc_open, .read = voice_svc_read, .write = voice_svc_write, .flush = voice_svc_flush, .release = voice_svc_release, }; Loading Loading
drivers/soc/qcom/qdsp6v2/voice_svc.c +3 −11 Original line number Diff line number Diff line Loading @@ -504,7 +504,7 @@ static int voice_svc_open(struct inode *inode, struct file *file) return 0; } static int voice_svc_flush(struct file *file, fl_owner_t id) static int voice_svc_release(struct inode *inode, struct file *file) { int ret = 0; struct apr_response_list *resp = NULL; Loading Loading @@ -553,18 +553,11 @@ static int voice_svc_flush(struct file *file, fl_owner_t id) spin_unlock_irqrestore(&prtd->response_lock, spin_flags); done: return ret; } static int voice_svc_release(struct inode *inode, struct file *file) { pr_debug("%s\n", __func__); kfree(file->private_data); file->private_data = NULL; return 0; done: return ret; } static const struct file_operations voice_svc_fops = { Loading @@ -572,7 +565,6 @@ static const struct file_operations voice_svc_fops = { .open = voice_svc_open, .read = voice_svc_read, .write = voice_svc_write, .flush = voice_svc_flush, .release = voice_svc_release, }; Loading