]> Git Repo - J-linux.git/commitdiff
dma-buf: remove useless FMODE_LSEEK flag
authorJason A. Donenfeld <[email protected]>
Wed, 29 Jun 2022 13:07:01 +0000 (15:07 +0200)
committerAl Viro <[email protected]>
Sat, 16 Jul 2022 13:19:15 +0000 (09:19 -0400)
This is already set by anon_inode_getfile(), since dma_buf_fops has
non-NULL ->llseek, so we don't need to set it here too.

Acked-by: Daniel Vetter <[email protected]>
Acked-by: Sumit Semwal <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Signed-off-by: Al Viro <[email protected]>
drivers/dma-buf/dma-buf.c

index 32f55640890ce5cfda4f8bfbd7c88a230054c5ea..3f08e0b960ec874caee00d5e9f99092f2a6e03e3 100644 (file)
@@ -549,7 +549,6 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info)
                goto err_dmabuf;
        }
 
-       file->f_mode |= FMODE_LSEEK;
        dmabuf->file = file;
 
        mutex_init(&dmabuf->lock);
This page took 0.051369 seconds and 4 git commands to generate.