Skip to content

Commit c9eb2d4

Browse files
zx2c4Al Viro
authored andcommitted
dma-buf: remove useless FMODE_LSEEK flag
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]>
1 parent 4e3299e commit c9eb2d4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/dma-buf/dma-buf.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,6 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info)
549549
goto err_dmabuf;
550550
}
551551

552-
file->f_mode |= FMODE_LSEEK;
553552
dmabuf->file = file;
554553

555554
mutex_init(&dmabuf->lock);

0 commit comments

Comments
 (0)