Skip to content

Commit 5c8a620

Browse files
Zou Weimiquelraynal
authored andcommitted
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
1 parent 33cebf7 commit 5c8a620

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mtd/nand/raw/rockchip-nand-controller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ struct rk_nfc_nand_chip {
159159
u32 timing;
160160

161161
u8 nsels;
162-
u8 sels[0];
162+
u8 sels[];
163163
/* Nothing after this field. */
164164
};
165165

0 commit comments

Comments
 (0)