diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-06-29 15:07:01 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-07-16 09:19:15 -0400 |
commit | c9eb2d427c1c428e4f4e29f1e635b9a83236c015 (patch) | |
tree | c5dd95f5388b199e2881eeda285dacce404af4ba /drivers/dma-buf/dma-buf.c | |
parent | 4e3299eaddffd9d7d5b8bae28ad700bb775f02d0 (diff) | |
download | linux-rpi-c9eb2d427c1c428e4f4e29f1e635b9a83236c015.tar.gz linux-rpi-c9eb2d427c1c428e4f4e29f1e635b9a83236c015.tar.bz2 linux-rpi-c9eb2d427c1c428e4f4e29f1e635b9a83236c015.zip |
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 <daniel.vetter@ffwll.ch>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/dma-buf/dma-buf.c')
-rw-r--r-- | drivers/dma-buf/dma-buf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c index 32f55640890c..3f08e0b960ec 100644 --- a/drivers/dma-buf/dma-buf.c +++ b/drivers/dma-buf/dma-buf.c @@ -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); |