diff options
author | 2021-12-25 18:06:48 +0800 | |
---|---|---|
committer | 2022-01-23 16:37:05 +0100 | |
commit | db52b445793d8e4ffe9b53ff749a55470b900984 (patch) | |
tree | 2d1168938613e900127dd45a88f21f00298eb38e /lib/test_bitmap.c | |
parent | mtd: rawnand: nandsim: Replace overflow check with kzalloc to single kcalloc (diff) | |
download | linux-dev-db52b445793d8e4ffe9b53ff749a55470b900984.tar.xz linux-dev-db52b445793d8e4ffe9b53ff749a55470b900984.zip |
mtd: rawnand: nandsim: Merge repeat codes in ns_switch_state
The moving block of codes is shared between both 'if' and 'else' condition,
we can move it out to reduce the duplication.
Signed-off-by: RinHizakura <s921975628@gmail.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211225100648.119011-1-s921975628@gmail.com
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions