diff options
author | Loic Pefferkorn <loic@loicp.eu> | 2014-09-03 22:23:15 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-06 21:54:57 -0700 |
commit | 1f11b38ca8b8f1ed6a70b518dabcb4cd96db8996 (patch) | |
tree | 71e52a5c681b6a977b05ce1eaa064e74bce29e08 /drivers/staging/goldfish | |
parent | 2c50741597b60284c4142808429fa94f3e516c23 (diff) | |
download | lwn-1f11b38ca8b8f1ed6a70b518dabcb4cd96db8996.tar.gz lwn-1f11b38ca8b8f1ed6a70b518dabcb4cd96db8996.zip |
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>
Diffstat (limited to 'drivers/staging/goldfish')
-rw-r--r-- | drivers/staging/goldfish/goldfish_nand.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/goldfish/goldfish_nand.c b/drivers/staging/goldfish/goldfish_nand.c index c6c85d3a31e7..d68f216a7e77 100644 --- a/drivers/staging/goldfish/goldfish_nand.c +++ b/drivers/staging/goldfish/goldfish_nand.c @@ -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); |