diff options
author | Andy Shevchenko <[email protected]> | 2022-09-29 12:42:15 +0300 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2022-10-02 00:43:11 +0200 |
commit | fe682780d5cdf7b3932c6a1c669db8fc344f7e17 (patch) | |
tree | c7d1f1843f63d38c66f2c4ac19b1ce38f278e5d6 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 65769162ae4b7f2d82e54998be446226b05fcd8f (diff) |
i2c: designware-pci: Use standard pattern for memory allocation
The pattern
foo = kmalloc(sizeof(*foo), GFP_KERNEL);
has an advantage when foo type is changed. Since we are planning a such,
better to be prepared by using standard pattern for memory allocation.
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Jarkko Nikula <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions