summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc/dgnc_driver.c
diff options
context:
space:
mode:
authorSeunghun Lee <waydi1@gmail.com>2014-09-01 22:46:59 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-02 10:44:33 -0700
commit587abd7b030283baf921ba1a62c8a7280fea5e9d (patch)
tree1f7f642c1d7b3f7e117203a5484899cd5fe8ba73 /drivers/staging/dgnc/dgnc_driver.c
parent239d1346f5f77135e272eee0c33cfa3e52fc4e1c (diff)
downloadop-kernel-dev-587abd7b030283baf921ba1a62c8a7280fea5e9d.zip
op-kernel-dev-587abd7b030283baf921ba1a62c8a7280fea5e9d.tar.gz
staging: dgnc: split two assignments into the two assignments on two lines.
split two assignments into the two assignments on two lines. CC: Lidza Louina <lidza.louina@gmail.com> CC: Mark Hounschell <markh@compro.net> Signed-off-by: Seunghun Lee <waydi1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_driver.c')
-rw-r--r--drivers/staging/dgnc/dgnc_driver.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index 11bed56..2cc02c9 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -410,14 +410,16 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
unsigned long flags;
/* get the board structure and prep it */
- brd = dgnc_Board[dgnc_NumBoards] =
- kzalloc(sizeof(*brd), GFP_KERNEL);
+ dgnc_Board[dgnc_NumBoards] = kzalloc(sizeof(*brd), GFP_KERNEL);
+ brd = dgnc_Board[dgnc_NumBoards];
+
if (!brd)
return -ENOMEM;
/* make a temporary message buffer for the boot messages */
- brd->msgbuf = brd->msgbuf_head =
- kzalloc(sizeof(u8) * 8192, GFP_KERNEL);
+ brd->msgbuf_head = kzalloc(sizeof(u8) * 8192, GFP_KERNEL);
+ brd->msgbuf = brd->msgbuf_head;
+
if (!brd->msgbuf) {
kfree(brd);
return -ENOMEM;
OpenPOWER on IntegriCloud