mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +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
@@ -252,9 +252,6 @@ static const struct file_operations tc_fops =
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
tc_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* If only a single touchscreen device is supported, then the driver state
|
||||
|
||||
@@ -184,9 +184,6 @@ static const struct file_operations g_lcdops =
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
lcd_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* This is the driver state structure */
|
||||
|
||||
Reference in New Issue
Block a user