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:
Loic Pefferkorn 2014-09-03 22:23:15 +02:00 committed by Greg Kroah-Hartman
parent 2c50741597
commit 1f11b38ca8
1 changed files with 2 additions and 1 deletions

View File

@ -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);