Skip to content

Commit

Permalink
gadgetfs: don't bother with fops->owner
Browse files Browse the repository at this point in the history
filesystem module as whole is pinned down by its superblock, no need
to have opened files on it to add anything to that.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Apr 9, 2013
1 parent c62c5a8 commit 3273097
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/gadget/f_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,6 @@ static long ffs_ep0_ioctl(struct file *file, unsigned code, unsigned long value)
}

static const struct file_operations ffs_ep0_operations = {
.owner = THIS_MODULE,
.llseek = no_llseek,

.open = ffs_ep0_open,
Expand Down Expand Up @@ -947,7 +946,6 @@ static long ffs_epfile_ioctl(struct file *file, unsigned code,
}

static const struct file_operations ffs_epfile_operations = {
.owner = THIS_MODULE,
.llseek = no_llseek,

.open = ffs_epfile_open,
Expand Down
2 changes: 0 additions & 2 deletions drivers/usb/gadget/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,6 @@ ep_open (struct inode *inode, struct file *fd)

/* used before endpoint configuration */
static const struct file_operations ep_config_operations = {
.owner = THIS_MODULE,
.llseek = no_llseek,

.open = ep_open,
Expand Down Expand Up @@ -1940,7 +1939,6 @@ dev_open (struct inode *inode, struct file *fd)
}

static const struct file_operations dev_init_operations = {
.owner = THIS_MODULE,
.llseek = no_llseek,

.open = dev_open,
Expand Down

0 comments on commit 3273097

Please sign in to comment.