mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
Remove the unnecessary NULL fields in global instance definition of file_operations
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
1815f8b731
commit
779a610ca3
@@ -50,9 +50,7 @@
|
||||
|
||||
static const struct file_operations ipcc_fops =
|
||||
{
|
||||
#ifdef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.unlink = NULL,
|
||||
#else /* CONFIG_DISABLE_PSEUDOFS_OPERATIONS */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
.unlink = ipcc_unlink,
|
||||
#endif /* CONFIG_DISABLE_PSEUDOFS_OPERATIONS */
|
||||
.open = ipcc_open,
|
||||
@@ -60,8 +58,6 @@ static const struct file_operations ipcc_fops =
|
||||
.poll = ipcc_poll,
|
||||
.read = ipcc_read,
|
||||
.write = ipcc_write,
|
||||
.ioctl = NULL,
|
||||
.seek = NULL
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user