mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +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
@@ -350,9 +350,6 @@ static const struct file_operations cdcwdm_fops =
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
cdcwdm_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* This is a bitmap that is used to allocate device names /dev/cdc-wdm[n]. */
|
||||
|
||||
@@ -344,9 +344,6 @@ static const struct file_operations g_hidkbd_fops =
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
usbhost_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* This is a bitmap that is used to allocate device names /dev/kbda-z. */
|
||||
|
||||
@@ -394,9 +394,6 @@ static const struct file_operations g_hidmouse_fops =
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
usbhost_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* This is a bitmap that is used to allocate device names /dev/mouse0-31. */
|
||||
|
||||
@@ -299,9 +299,6 @@ static const struct file_operations g_xboxcontroller_fops =
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
usbhost_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* This is a bitmap that is used to allocate device names /dev/xboxa-z. */
|
||||
|
||||
Reference in New Issue
Block a user