Skip to content

Commit fca660b

Browse files
author
Al Viro
committed
dmasound_core: saner arguments for sq_fsync()
it is not (and it has never been) an ->fsync() instance... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 79d0a3e commit fca660b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎sound/oss/dmasound/dmasound_core.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ static void sq_reset(void)
835835
shared_resources_initialised = 0 ;
836836
}
837837

838-
static int sq_fsync(struct file *filp, struct dentry *dentry)
838+
static int sq_fsync(void)
839839
{
840840
int rc = 0;
841841
int timeout = 5;
@@ -874,7 +874,7 @@ static int sq_release(struct inode *inode, struct file *file)
874874

875875
if (file->f_mode & FMODE_WRITE) {
876876
if (write_sq.busy)
877-
rc = sq_fsync(file, file->f_path.dentry);
877+
rc = sq_fsync();
878878

879879
sq_reset_output() ; /* make sure dma is stopped and all is quiet */
880880
write_sq_release_buffers();
@@ -1025,7 +1025,7 @@ static int sq_ioctl(struct file *file, u_int cmd, u_long arg)
10251025
*/
10261026
result = 0 ;
10271027
if (file->f_mode & FMODE_WRITE) {
1028-
result = sq_fsync(file, file->f_path.dentry);
1028+
result = sq_fsync();
10291029
sq_reset_output() ;
10301030
}
10311031
/* if we are the shared resource owner then release them */

0 commit comments

Comments
 (0)