mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
staging: goldfish: avoid multiple assignments
Coding style: avoid multiple assignments Signed-off-by: Loic Pefferkorn <loic@loicp.eu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2c50741597
commit
1f11b38ca8
@ -329,9 +329,10 @@ static int goldfish_nand_init_device(struct platform_device *pdev,
|
||||
|
||||
mtd->priv = nand;
|
||||
|
||||
mtd->name = name = devm_kzalloc(&pdev->dev, name_len + 1, GFP_KERNEL);
|
||||
name = devm_kzalloc(&pdev->dev, name_len + 1, GFP_KERNEL);
|
||||
if (name == NULL)
|
||||
return -ENOMEM;
|
||||
mtd->name = name;
|
||||
|
||||
result = goldfish_nand_cmd(mtd, NAND_CMD_GET_DEV_NAME, 0, name_len,
|
||||
name);
|
||||
|
Loading…
Reference in New Issue
Block a user