mirror of
https://github.com/torvalds/linux.git
synced 2026-08-02 04:50:05 +02:00
staging: axis-fifo: Remove unnecessary casts from file->private_data
Drop explicit casts when accessing file->private_data in the read() and write() paths, as they are not needed. Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com> Link: https://patch.msgid.link/20251227212640.3321310-5-ovidiu.panait.oss@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d1a3cfec3a
commit
eb757312ac
|
|
@ -157,7 +157,7 @@ static void reset_ip_core(struct axis_fifo *fifo)
|
|||
static ssize_t axis_fifo_read(struct file *f, char __user *buf,
|
||||
size_t len, loff_t *off)
|
||||
{
|
||||
struct axis_fifo *fifo = (struct axis_fifo *)f->private_data;
|
||||
struct axis_fifo *fifo = f->private_data;
|
||||
size_t bytes_available;
|
||||
unsigned int words_available;
|
||||
unsigned int copied;
|
||||
|
|
@ -268,7 +268,7 @@ static ssize_t axis_fifo_read(struct file *f, char __user *buf,
|
|||
static ssize_t axis_fifo_write(struct file *f, const char __user *buf,
|
||||
size_t len, loff_t *off)
|
||||
{
|
||||
struct axis_fifo *fifo = (struct axis_fifo *)f->private_data;
|
||||
struct axis_fifo *fifo = f->private_data;
|
||||
unsigned int words_to_write;
|
||||
u32 *txbuf;
|
||||
int ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user