]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: axis-fifo: Drop unneeded release callback
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Sat, 27 Dec 2025 21:26:35 +0000 (23:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Jan 2026 12:54:12 +0000 (13:54 +0100)
The release function only clears file->private_data, which is not
needed. Remove the callback.

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Link: https://patch.msgid.link/20251227212640.3321310-4-ovidiu.panait.oss@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/axis-fifo/axis-fifo.c

index d49bb401a227505e9b9e2a493d4d86b7a3302a2c..4071060419ba15f48493e63987954b481bff460c 100644 (file)
@@ -421,17 +421,9 @@ static int axis_fifo_open(struct inode *inod, struct file *f)
        return 0;
 }
 
-static int axis_fifo_close(struct inode *inod, struct file *f)
-{
-       f->private_data = NULL;
-
-       return 0;
-}
-
 static const struct file_operations fops = {
        .owner = THIS_MODULE,
        .open = axis_fifo_open,
-       .release = axis_fifo_close,
        .read = axis_fifo_read,
        .write = axis_fifo_write,
        .poll = axis_fifo_poll,