mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +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
@@ -78,10 +78,6 @@ static const struct file_operations g_foc_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
foc_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* FOC callbacks from the lower-half implementation to this driver */
|
||||
|
||||
@@ -80,10 +80,6 @@ static const struct file_operations motor_fops =
|
||||
motor_write, /* write */
|
||||
NULL, /* seek */
|
||||
motor_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user