mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
mtd: rawnand: rockchip: Use flexible-array member instead of zero-length array
Suppresses the following coccinelle warning: drivers/mtd/nand/raw/rockchip-nand-controller.c:162:4-8: WARNING use flexible-array member instead Signed-off-by: Zou Wei <zou_wei@huawei.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210323131137.45552-1-zou_wei@huawei.com
This commit is contained in:
parent
33cebf701e
commit
5c8a620ab2
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ struct rk_nfc_nand_chip {
|
|||
u32 timing;
|
||||
|
||||
u8 nsels;
|
||||
u8 sels[0];
|
||||
u8 sels[];
|
||||
/* Nothing after this field. */
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue