aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2023-02-04 08:35:19 -0600
committerMiquel Raynal <[email protected]>2023-02-06 12:53:07 +0100
commitac1c7072e38e492b27353a6e7b144e64cbbf9495 (patch)
treee65ff34f9542c4ae0e5cffcd2469def9b2cebd32 /lib/netdev-notifier-error-inject.c
parent3998a4611e8be2e9b5833e7aae29619ea0305437 (diff)
mtd: rawnand: sunxi: Embed sunxi_nand_hw_ecc by value
The sunxi_nand_hw_ecc object is not shared, and it has the same lifetime as the sunxi_nand_chip which points to it, so we can embed it in the outer structure instead of using a pointer. This removes an unnecessary memory allocation and simplifies the error handling code. Signed-off-by: Samuel Holland <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions