]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: axis-fifo: drop redundant read/write_flags from axis_fifo
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Fri, 19 Sep 2025 19:53:59 +0000 (22:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Oct 2025 07:09:29 +0000 (09:09 +0200)
commit89443a92c506dcd91209ddd6d37e0d3beb5a4279
tree70152639d09d8200e897f9023f1650c452db281b
parent4497288513350d19e75232d0a8161f0094ade026
staging: axis-fifo: drop redundant read/write_flags from axis_fifo

The driver stores file flags (read_flags/write_flags) in the axis_fifo
struct, duplicating information already available in struct file.

Switch to using f->f_flags directly in read/write paths and open(),
removing the unnecessary fields.

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Link: https://lore.kernel.org/r/20250919195400.3180039-5-ovidiu.panait.oss@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/axis-fifo/axis-fifo.c